GithubHelp home page GithubHelp logo

jav-info's Introduction

JAV-Info

A simple tool to rename local video files by jav unique id(bangou); it can also download album image and thumbnails images

Demo

  • Demo

Usage

Download Windows(.exe) version at release(Deprecated❗) or directly use Python

Requirement

Usage: python main.py

Config

This program will read config from config.json.

You can modify from config-template.json.

Key Description
fileDirs Input directories, Unix-like file path is preferred
getInfoInterval Time interval to retrieve data from source website in second, do not set too small
fileNameFormat Format of new file name, see detail below
language tw, cn, en, ja for javlibrary, english only in javdb
saveAlbum Save album image in the same directory of video file
saveThumb Save thumbnails in the same directory of video file
dryRun Run without real execution
maxFileLength Maximum file name length in bytes, reduce this value if "file name too long" error happens
minFileSizeMB Minimum file size(in MB) to rename
renameCheck Ask before every rename operation
ignoreWords Ignore list of words in filename to prevent parse bangou error, e.g., "1080p-123.mp4" will possibly be parsed as p-123
retryFailedDB Retrieve failed data in database from source website again
javlibraryCookieFilePath Your logined cookie files from website https://www.javlibrary.com
javdbCookieFilePath Your logined cookie files from website https://javdb.com

Tags in fileNameFormat

Recommend to include {bangou} in filename in order to do further renaming.

Tags Description
{bangou} The unique ID of jav
{title} Title may include actors' name, guarantee not include bangou
{tags} Tags in source website
{director}
{maker} Maker of the video, often related to the first(english) part of bangou
{actors}
{duration} The length of video in minutes
{date} Release date
{rating} User rating from source website
{album} Link of album image, not recommend to use
{thumbs} Link of thumbnails, not recommend to use
{link} Link of information source, not recommend to use

Database

All queries will be saved in db-{language}.json.

You can do dry run to check the rename progress and then execute without retrieving data again.

Failed requests will also be saved, so clean the database if something went wrong.

Note

  • Input filename should include bangou, or it cannot be renamed
  • If there exist multiple files that have the same bangou, they will be renamed with the suffix serial number, ordered by original file name

Future Work

  • Execute
    • fill video metadata in file
    • options for new folder
  • FileName
    • fit more types of bangou
  • Database
    • use other method instead directly loading into memory
    • find other database which has chinese title
  • UI
    • interface to search local database

Source Website

jav-info's People

Contributors

gitqwerty777 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.