Better absolute handling animelist

This commit is contained in:
Zoe Roux 2024-06-05 22:09:20 +02:00
parent ad35c95e25
commit 650f4866d0
No known key found for this signature in database

View File

@ -84,12 +84,12 @@ class AnimeList(Provider):
if absolute is not None: if absolute is not None:
serie = await self._get_info(name, year, kind="serie") serie = await self._get_info(name, year, kind="serie")
if serie: if serie:
(season, episode_nbr) = self.get_episode_info(serie, absolute) (season, episode_nbr, absolute) = self.get_episode_info(serie, absolute)
ret = await self._tvdb.identify_episode( ret = await self._tvdb.identify_episode(
serie.tvdbid, serie.tvdbid,
season, season,
episode_nbr, episode_nbr,
None, absolute,
) )
# TODO: Add anidb id in ret.external_id # TODO: Add anidb id in ret.external_id
return ret return ret