mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-21 22:40:34 -04:00
Fix movie refresh
This commit is contained in:
parent
cd18ec1747
commit
21841604a3
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user