feat(providers): fill the AniList ID of a TMDB or TVDB match from the anime-lists ID map

This commit is contained in:
imSp4rky
2026-11-29 11:29:31 -07:00
parent d2eea0c4c5
commit 1cbaa2d307
7 changed files with 324 additions and 13 deletions
+9
View File
@@ -1148,6 +1148,15 @@ yourself.
IDs of the whole series, also for a later season. When the map cannot download, the match
keeps only its AniList ID.
The map also works in the other direction. A TMDB or TVDB match of an anime title has no
AniList ID, so unshackle looks its TMDB or TVDB ID up in the map. It does this only for an
anime service, or for a match whose original language is Japanese, Korean or Chinese, so
other downloads never download the map. One series often has an AniList entry for each season.
unshackle then uses the season number of each episode, and writes no AniList tag when no
single entry has that season. It reads the season number in the TMDB numbering and in the TVDB
numbering, and when the two give different entries, it writes no AniList tag. A TMDB movie ID takes only the AniList entry of that movie.
An AniList ID that you give with `--anilist` always wins over the map.
The ID you give must have a metadata provider that can find it, so unshackle makes sure of
that before it downloads anything. `--tmdb` without `tmdb_api_key`, or an ID whose metadata
providers your `metadata_providers` list leaves out, fails immediately with a message naming