UPDATE: XEM
TheTVDB ➔ AniDB mapping not really useful for typical use cases due to API limitations.
e.g.
Code: Select all
TheTVDB::267440 | Attack on Titan | Season 4 | Episode 28
cannot be mapped to
Code: Select all
AniDB::16177 | Anime: Shingeki no Kyojin: The Final Season (2022) | Episode 12
In particular, the AniDB ID nor season-specific series name
AniDB::16177 | Anime: Shingeki no Kyojin: The Final Season (2022) cannot be retrieved via the API. We can map to
6x12 but
Season 6 in the context of AniDB means nothing, and there's no API to retrieve the corresponding AniDB series name and ID, and
Episode 12 isn't useful because every AniDB series/season as a 12th episode, and so the AniDB series/season name is required to identify files.
The necessary information is available on the website, at least the season-specific AniDB series ID:
*
https://thexem.info/xem/show/4469
But not via the machine-readable API:
*
https://thexem.info/map/all?id=267440&origin=tvdb
e.g.
Code: Select all
$ filebot -list --q 267440 --db TheTVDB --format "{xem.AniDB} <= {episode}"
null - 01 <= Attack on Titan - 1x01 - To You, in 2000 Years: The Fall of Shiganshina (1)
...
Shingeki no Kyojin S2 - 01 <= Attack on Titan - 2x01 - Beast Titan
...
Shingeki no Kyojin S3 - 01 <= Attack on Titan - 3x01 - Smoke Signal
...
Shingeki no Kyojin S3 - 01 <= Attack on Titan - 3x13 - The Town Where Everything Began
...
Shingeki no Kyojin S4 - 01 <= Attack on Titan - 4x01 - The Other Side of the Sea
...
Shingeki no Kyojin S4 - 01 <= Attack on Titan - 4x17 - Judgment
...
EDIT:
FileBot r9354 updates
{xem} and removes AniDB season/series name guesswork to make
{xem} work or not work in a more predictable manner.
TheTVDB ➔ AniDB mapping now passes back API records unmodified.
AniDB ➔ TheTVDB mapping will now throw an error instead of maybe working, maybe not working, maybe working incorrectly.
Code: Select all
$ filebot -list --q 267440 --db TheTVDB --format "{xem.AniDB} <= {episode}"
Attack on Titan - 1x01 <= Attack on Titan - 1x01 - To You, in 2000 Years: The Fall of Shiganshina (1)
...
Attack on Titan - 2x01 <= Attack on Titan - 2x01 - Beast Titan
...
Attack on Titan - 3x01 <= Attack on Titan - 3x01 - Smoke Signal
...
Attack on Titan - 5x01 <= Attack on Titan - 4x01 - The Other Side of the Sea
...
Attack on Titan - 6x01 <= Attack on Titan - 4x17 - Judgment
...

The
Attack on Titan - 6x01 mapping would generally be useless for matching AniDB named files, because AniDB named files don't have season numbers, and instead identify
"seasons" via a unique series name per
"season".