Skip to main content

Download japanese anime subtitles from Jimaku

Project description

Jimaku Downloader

A Python package to automate download japanese subtitles for anime from jimaku.cc

Features

  • Search for subtitles using AniList IDs
  • Supports both individual files and directories
  • Interactive subtitle selection using fzf
  • Auto-detects anime from filenames with season and episode numbers
  • Recursively checks parent directories for anime titles
  • Optional MPV playback with downloaded subtitles
  • Caches AniList IDs to reduce API calls

Installation

# From PyPI
pip install jimaku-dl

# From source
git clone https://github.com/ksyasuda/jimaku-dl.git
cd jimaku-dl
pip install -e .

Usage

Command Line

# Download subtitles for a video file
jimaku-dl /path/to/your/anime.S01E02.mkv

# Download subtitles for an entire series (directory mode)
jimaku-dl /path/to/your/anime/directory/

# Specify a different destination directory
jimaku-dl /path/to/your/anime.mkv --dest /path/to/subtitles/

# Play the video with MPV after downloading subtitles
jimaku-dl /path/to/your/anime.mkv --play

# Set API token via command line
jimaku-dl /path/to/your/anime.mkv --api-token YOUR_TOKEN

Environment Variables

You can set your Jimaku API token using the JIMAKU_API_TOKEN environment variable:

export JIMAKU_API_TOKEN=your_api_token

Python API

from jimaku_downloader import JimakuDownloader

# Create a downloader instance
downloader = JimakuDownloader(api_token="your_api_token", log_level="INFO")

# Download subtitles
downloaded_files = downloader.download_subtitles(
    media_path="/path/to/your/anime.mkv",
    dest_dir="/path/to/save/subtitles/",  # Optional
    play=True  # Optional: play with MPV after downloading
)

print(f"Downloaded {len/downloaded_files)} subtitle files")

Requirements

  • Python 3.8 or higher
  • fzf command-line utility for interactive selection
  • mpv (optional, for playback functionality)
  • A valid jimaku.cc API token

License

GPL v3

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

jimaku_dl-0.1.1.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jimaku_dl-0.1.1-py3-none-any.whl (22.1 kB view details)

Uploaded Python 3

File details

Details for the file jimaku_dl-0.1.1.tar.gz.

File metadata

  • Download URL: jimaku_dl-0.1.1.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jimaku_dl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dae50d7528fe547a6cec07fc88c0cd51a6dd46ea8b069163b88a1b08f5025c2f
MD5 62b773daed758ea3feb2f251dee4d432
BLAKE2b-256 cf6733972a073609db2ea762a4c40287513daf30f66aa717e2cb3af94037b071

See more details on using hashes here.

File details

Details for the file jimaku_dl-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: jimaku_dl-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jimaku_dl-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8886972e45e625274a42607fe2b570b22d9a8bc381360590d4fb4cd22ddab2f7
MD5 67c0aed38b8b8a3cb90f597140eec924
BLAKE2b-256 b904defedb80b7db84ca8c17119fde0834be0970a298b2cf51284cb658e820f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page