KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
JAV-Info
★ 18
Open GitHub ↗
Rename jav files by bangou
Download README (.md)
Explore Similar Repositories
dotnet-nats-template
:
.NET template for NATS
DONE
:
Federated Learning using PyTorch. Second-Order for Federated Learning. (IEEE Transactions on Parallel and Distributed Systems 2022)
nuxt-typescript-demo
:
nuxt.js + typescript + vuex,最近从零到一开发了一个门户网站,因对seo有要求,所以选择nuxt.js搭配typescript,期间遇到不少问题,最终都一一解决了,留下一个demo供参考,希望能帮到有需要的人。
My-Notes
:
Java 学习笔记
TouchLessDemos
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
JAV-Info
?
Download (.md)
# 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 -  ## Usage Download Windows(.exe) version at release(Deprecated❗) or directly use Python ### Requirement - Python3.9 or newer - [Poetry](https://python-poetry.org/) for dependency management - Install dependencies with `poetry install` - Google Chrome installed - Selenium Manager auto-downloads a matching ChromeDriver, so no manual driver setup is needed - Modify `config.json` from `config-template.json` - Put your logged-in cookie files under `cookies/` (paths are set in `config.json`) Usage: `poetry run python main.py` > javlibrary sits behind Cloudflare's anti-bot challenge. The tool accesses it > with a headless undetected browser ([SeleniumBase](https://seleniumbase.io/) > UC mode) to get past it, which makes javlibrary lookups noticeably slower than > javdb. ## 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` | | skipPrefixes | (Optional) Skip files whose name starts with any of these prefixes, e.g., `["[H264]"]` | | 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/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. Generated logs (rename history, failed history, parsed bangou list) are written under `logs/`. ## 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 - The rename uses the source's top search result. For poorly-indexed content (e.g. FC2/amateur), that match can be wrong — prefer `dryRun` first and verify before executing - Every actual rename is recorded in `logs/renameHistory_{date}.txt`, so renames can be reversed ## 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 - [javlibrary](https://www.javlibrary.com) - [javdb](https://javdb.com)