Fix movie refresh

This commit is contained in:
Zoe Roux 2024-05-01 15:38:23 +02:00
parent cd18ec1747
commit 21841604a3
No known key found for this signature in database

View File

@ -197,6 +197,11 @@ class Matcher:
kind: Literal["collection", "movie", "episode", "show", "season"], kind: Literal["collection", "movie", "episode", "show", "season"],
kyoo_id: str, kyoo_id: str,
): ):
async def id_movie(movie: dict, id: dict):
ret = await self._provider.identify_movie(id["dataId"])
ret.path = movie["path"]
return ret
async def id_season(season: dict, id: dict): async def id_season(season: dict, id: dict):
ret = await self._provider.identify_season( ret = await self._provider.identify_season(
id["dataId"], season["seasonNumber"] id["dataId"], season["seasonNumber"]
@ -217,7 +222,7 @@ class Matcher:
"collection": lambda _, id: self._provider.identify_collection( "collection": lambda _, id: self._provider.identify_collection(
id["dataId"] id["dataId"]
), ),
"movie": lambda _, id: self._provider.identify_movie(id["dataId"]), "movie": id_movie,
"show": lambda _, id: self._provider.identify_show(id["dataId"]), "show": lambda _, id: self._provider.identify_show(id["dataId"]),
"season": id_season, "season": id_season,
"episode": id_episode, "episode": id_episode,