fix: TheTVDB v4 API compatibility + provider-specific renamelist entries

- addrename.sh: replace dead TheTVDB HTML scrape (404 since site overhaul)
  with new v4 API (api.thetvdb.com) using optional TVDB_API_KEY from
  JDAutoConfig; fall back to manual name entry when name cannot be fetched
- rename.sh: per-entry provider stored as renamelist line 6 (IDs are
  provider-specific: TVDB id != TMDB id); old 6-line entries fall back to
  the configured category default
- rename.sh: filebot_rename() validates db value and logs provider/id;
  movie fallback now uses config (FileBotLang, Movies path) instead of
  hardcoded German//mnt/Medien/Filme; drop dead names() TVDB scraper
- fix pre-existing syntax error: three prompt lines in addrename.sh had
  unbalanced quotes (odd count) - bash -n failed on the whole script
- README: filebot 4.8.5 note replaced (new TVDB v4 API needs 5.x+),
  new 'Metadata providers' section incl. TMDB German episode caveat
- JDAutoConfig: document provider options + optional TVDB_API_KEY
- i18n: add tvdb_key_missing/name_fetch_failed/enter_manually (addrename)
  and no_db/using_db (rename) for de_DE, en_GB, en_US
This commit is contained in:
ARIA committed 2026-11-08 21:31:30 +01:00
1 parent 0ca3e19117
commit 7a05877139
10 files changed
+109 -29

No files matched your search

+15 -1
View File
@@ -12,7 +12,7 @@ I try to use as few external programs as possible, so that everyone can use them
- JDownloader obious. Archive Extractor + Event Scripter so the script can be startet if archive is successfully unpacked.
- FFmpeg (If used with Nvidia, [use this guide for NVENC encoding](https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/))
- For encoding. Also used for checking codecs and duration (via ffprobe command).
- [Filebot](https://www.filebot.net/#download) (I use version 4.8.5 myself)
- [Filebot](https://www.filebot.net/#download) (use the latest 5.x - TheTVDB's new v4 API does not work with older versions)
- For renaming. Best match rate so unrivaled if you ask me.
- Bash version 4 or higher ( bash --version so enter command in terminal)
- Some commands need bash v4 like for converting to lower/uppercase.
@@ -34,6 +34,20 @@ You can setup Discord Nextcloud Talk and/or Apprise Notifications if:
- Duration of encoded video doesn't match sourcefile (encoding error)
- FileBot couldn't rename files 3 times in a row
# Metadata providers (FileBot --db):
You can pick the metadata provider per category in config.sh (6) FileBot:
- TheMovieDB - movies
- TheMovieDB::TV - TV series (weaker German episode-title coverage; --lang German often falls back to English)
- TheTVDB - TV series / anime (best DE episode data, but needs a recent filebot 5.x+ since the TheTVDB v4 API overhaul)
- AniDB - anime
renamelist entries store the provider they were added with (line 6), so each entry
keeps working even after you switch the default provider. But IDs are provider-specific:
a TVDB series id is NOT a TheMovieDB id - re-add an entry (or edit the line) if you
switch the provider for it. If you keep TheTVDB, you can set TVDB_API_KEY in JDAutoConfig
(optional, used by addrename.sh for the name check).
# Known Bugs:
- FileBot can't rename files sometimes, even if it restarts the whole process 2 times in a row. Need to manually start jdautoenc.sh again, works first time.. always. Dunno (detects the right anime/series/movie but couldn't move them, or access them. Working on it)