Download japanese anime subtitles from Jimaku
Project description
Jimaku Downloader
Features
- Query AniList for anime titles
- Select subtitle entries from Jimaku
- Download subtitles to a specified directory
- Launch MPV with the downloaded subtitles
- Supports both file and directory inputs
- Configurable logging levels
Installation
You can install Jimaku Downloader using pip:
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
Usage
Command Line Interface
The main entry point for Jimaku Downloader is the jimaku-dl command. Here are some examples of how to use it:
# Download subtitles for a single video file
jimaku-dl /path/to/video.mkv
# Download subtitles for a directory
jimaku-dl /path/to/anime/directory
# Specify a custom destination directory
jimaku-dl /path/to/video.mkv --dest /custom/path
# Launch MPV with the downloaded subtitles
jimaku-dl /path/to/video.mkv --play
# Specify an AniList ID directly
jimaku-dl /path/to/video.mkv --anilist-id 123456
# Set the Jimaku API token
jimaku-dl /path/to/video.mkv --token your_api_token
# Set the logging level
jimaku-dl /path/to/video.mkv --log-level DEBUG
Python API
You can also use Jimaku Downloader as a Python library:
from jimaku_dl.downloader import JimakuDownloader
downloader = JimakuDownloader(api_token="your_api_token", log_level="INFO")
downloaded_files = downloader.download_subtitles("/path/to/video.mkv", dest_dir="/custom/path", play=True)
print(f"Downloaded files: {downloaded_files}")
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
-
Run the tests:
pytest
License
Jimaku Downloader is licensed under the MIT License. See the LICENSE file for more information.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jimaku_dl-0.1.2.tar.gz.
File metadata
- Download URL: jimaku_dl-0.1.2.tar.gz
- Upload date:
- Size: 36.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56b7394e2528a721d2ba50e01280b2f37bdd43a8131d7f0f46ff1fa50976d9d5
|
|
| MD5 |
519808caf4c07079498656693d126f17
|
|
| BLAKE2b-256 |
309268d2337cc743d3a3ec692a16acf420aba388b38fde42ae28a089b7842740
|
File details
Details for the file jimaku_dl-0.1.2-py3-none-any.whl.
File metadata
- Download URL: jimaku_dl-0.1.2-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c226f093b0d9cf8d4edd7155e4e2b604c8fd4ffc64da029ea7f9faa29215d97
|
|
| MD5 |
df7a5a2325acc9b78002371d8ca292e2
|
|
| BLAKE2b-256 |
67ed8f30884a4276f3e375811a55140c9aae844017186f9b6b4612c3cd5ea7ec
|