a bunch of routines to transform ghibili movies from Chinese names to jellyfin-friendly names
|
|
hace 8 meses | |
|---|---|---|
| docker | hace 8 meses | |
| .gitignore | hace 8 meses | |
| README.md | hace 8 meses | |
| build_jellyfin_dir.py | hace 8 meses | |
| delete_media.py | hace 8 meses | |
| discard_media.py | hace 8 meses | |
| ghibili.py | hace 8 meses | |
| ghibili2.py | hace 8 meses | |
| ghibili3.py | hace 8 meses | |
| ghibili4.py | hace 8 meses | |
| ghibli_imdb_results-saved.json | hace 8 meses | |
| ghibli_imdb_results.json | hace 8 meses | |
| ghibli_jellyfin_ready (original dir info).json | hace 8 meses | |
| ghibli_jellyfin_ready.json | hace 8 meses | |
| remove_symlinks.py | hace 8 meses | |
| removed_symlinks.txt | hace 8 meses | |
| small_media_files.txt | hace 8 meses | |
| sync_dry_run.txt | hace 8 meses | |
| sync_errors.txt | hace 8 meses | |
| sync_media.py | hace 8 meses | |
| transform_files.py | hace 8 meses |
This project provides a set of Python scripts to process a collection of Japanese animation (anime) files, originally named in Chinese, and transform them into a directory and file structure suitable for Jellyfin media server. The toolkit also supports fetching and organizing metadata from online movie databases such as IMDb and TMDB.
ghibili3.py:Traverses your anime directory, matches Chinese titles to English, and fetches metadata from IMDb/TMDB. Outputs results to ghibli_imdb_results.json.transform_files.py:Transforms the metadata and file information into a Jellyfin-ready format, outputting ghibli_jellyfin_ready.json.build_jellyfin_dir.py:Builds the target directory structure for Jellyfin using the transformed JSON. Supports options for dry-run, symlinking, renaming files/directories, and more.sync_media.py:Synchronizes media files between directories, with support for dry-run and error logging.Other utility scripts:
delete_media.py, discard_media.py, remove_symlinks.py: Various helpers for cleaning and managing your media files.Collect and Match Titles:
python ghibili3.py ./anime --tmdb <TMDB_API_KEY>
This generates ghibli_imdb_results.json.
Transform Metadata for Jellyfin:
python transform_files.py
This generates ghibli_jellyfin_ready.json.
Build Jellyfin Directory Structure:
python build_jellyfin_dir.py ghibli_jellyfin_ready.json ./jellyfin_anime --symlink --rename-dir --dry-run
Remove --dry-run to actually create files and directories.
requests library (for metadata fetching)Install dependencies:
pip install requests
anime/ — Original anime files, named in Chinese.ghibli_imdb_results.json — Metadata results from IMDb/TMDB.ghibli_jellyfin_ready.json — Jellyfin-ready metadata and file info.jellyfin_anime/ — Output directory for Jellyfin import (created by scripts).--dry-run first to preview changes before making modifications.MIT License
This toolkit is not affiliated with Studio Ghibli or Jellyfin.