From 21841604a3d7344d629ee198d5e4c897fd2607df Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 1 May 2024 15:38:23 +0200 Subject: [PATCH] Fix movie refresh --- scanner/matcher/matcher.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scanner/matcher/matcher.py b/scanner/matcher/matcher.py index c4835f6f..0fd597d2 100644 --- a/scanner/matcher/matcher.py +++ b/scanner/matcher/matcher.py @@ -197,6 +197,11 @@ class Matcher: kind: Literal["collection", "movie", "episode", "show", "season"], 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): ret = await self._provider.identify_season( id["dataId"], season["seasonNumber"] @@ -217,7 +222,7 @@ class Matcher: "collection": lambda _, id: self._provider.identify_collection( id["dataId"] ), - "movie": lambda _, id: self._provider.identify_movie(id["dataId"]), + "movie": id_movie, "show": lambda _, id: self._provider.identify_show(id["dataId"]), "season": id_season, "episode": id_episode,