Improve tvdb to tmdb season/episode conversion

This commit is contained in:
Zoe Roux 2024-01-05 11:45:17 +01:00
parent 5d7fc1ca0c
commit 91c88e7f43

View File

@ -388,7 +388,10 @@ class TheMovieDatabase(Provider):
# For example when name is "Jojo's bizzare adventure - Stone Ocean", with season None,
# We want something like season 6 ep 3.
if season is None and absolute is not None:
(season, episode, absolute) = await self._xem.get_episode_override("tvdb", tvdbid, name, absolute)
(tvdb_season, tvdb_episode, absolute) = await self._xem.get_episode_override("tvdb", tvdbid, name, absolute)
# Most of the time, tvdb absolute and tmdb absolute are in think so we use that as our souce of truth.
# tvdb_season/episode are not in sync with tmdb so we discard those and use our usual absolute order fetching.
(_, _) = tvdb_season, tvdb_episode
if not show_id in self.absolute_episode_cache:
await self.get_absolute_order(show_id)