Jimaku-DL
A tool for downloading Japanese subtitles for anime from Jimaku
Features
- Download subtitles from Jimaku.cc
- Automatic subtitle synchronization with video (requires ffsubsync)
- Playback with MPV player and Japanese audio track selection
- On-screen notification when subtitle synchronization is complete
- Background synchronization during playback
- Cross-platform support (Windows, macOS, Linux)
- Smart filename and directory parsing for anime detection
- Cache AniList IDs for faster repeat usage
- Interactive subtitle selection with fzf
- Automatic subtitle renaming to match video filenames
Installation
pip install jimaku-dl
Arch Linux
Arch Linux users can install python-jimaku-dl from the AUR
paru -S python-jimaku-dl
# or
yay -S python-jimaku-dl
Requirements
- Python 3.8+
- fzf for interactive selection menus (required)
- MPV for video playback (optional)
- ffsubsync for subtitle synchronization (optional)
Usage
# Basic usage - Download subtitles for a video file
jimaku-dl /path/to/your/anime.mkv
# Download subtitles and play video immediately
jimaku-dl /path/to/your/anime.mkv --play
# Download, play, and synchronize subtitles in background
jimaku-dl /path/to/your/anime.mkv --play --sync
# Download subtitles and rename to match video filename
jimaku-dl /path/to/your/anime.mkv --rename
# Download subtitles for all episodes in a directory
jimaku-dl /path/to/your/anime/season-1/
# Specify custom destination directory
jimaku-dl /path/to/your/anime.mkv --dest-dir /path/to/subtitles
API Token
You'll need a Jimaku API token to use this tool. Set it using one of these methods:
-
Command line option:
jimaku-dl /path/to/anime.mkv --token YOUR_TOKEN_HERE
-
Environment variable:
export JIMAKU_API_TOKEN="your-token-here" jimaku-dl /path/to/anime.mkv
Command-Line Options
usage: jimaku-dl [options] MEDIA_PATH
positional arguments:
MEDIA_PATH Path to media file or directory
options:
-h, --help Show this help message and exit
-v, --version Show program version number and exit
-t TOKEN, --token TOKEN
Jimaku API token (can also use JIMAKU_API_TOKEN env var)
-l {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Set logging level
-d DEST_DIR, --dest-dir DEST_DIR
Destination directory for subtitles
-p, --play Play media with MPV after download
-a ANILIST_ID, --anilist-id ANILIST_ID
AniList ID (skip search)
-s, --sync Sync subtitles with video in background when playing
File Naming
Jimaku Downloader supports various file naming conventions to extract show title, season, and episode information. It is recommended to follow the Trash Guides recommended naming schema for best results.
Examples
Show Title - S01E02 - Episode Name [1080p].mkvShow.Name.S01E02.1080p.mkvShow_Name_S01E02_HEVC.mkv/path/to/Show Name/Season-1/Show Name - 02 [1080p].mkv
Development
To contribute to Jimaku Downloader, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/jimaku-dl.git cd jimaku-dl
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt pip install -r requirements_dev.txt
License
Jimaku Downloader is licensed under the GPLv3 License. See the LICENSE file for more information.
Metadata
Release files for jimaku-dl 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jimaku_dl-0.1.6.tar.gz | 35.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jimaku_dl-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.1 kB
Release files / jimaku_dl-0.1.6.tar.gz
| Download URL | jimaku_dl-0.1.6.tar.gz |
|---|---|
| Size | 35.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbde179ab3c176d8251f6f475abf0312b11653a7a767918825d1c8589d22723d
|
|
BLAKE2b-256 checksum How to use checksums |
4d07d20738462353515f21536ab322ed54b1c41142dfa7ddde6069c8e2425551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / jimaku_dl-0.1.6-py3-none-any.whl
| Download URL | jimaku_dl-0.1.6-py3-none-any.whl |
|---|---|
| Size | 34.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3a220c140228a7fc0efc901febf2340412ba029a09d2596142629b6f71c080df
|
|
BLAKE2b-256 checksum How to use checksums |
83769ac7b74dce8e92e7acbd3718378b7e9e637982897b50e6ca0f3e9b67e44f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|