From 346750931d1e9e05aa4b906dbde7e928f388cd45 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 19 Feb 2024 17:46:12 +0100 Subject: [PATCH] Fix type issue --- scanner/providers/implementations/themoviedatabase.py | 2 +- scanner/providers/provider.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scanner/providers/implementations/themoviedatabase.py b/scanner/providers/implementations/themoviedatabase.py index d0ea8d66..ab3c6cae 100644 --- a/scanner/providers/implementations/themoviedatabase.py +++ b/scanner/providers/implementations/themoviedatabase.py @@ -506,7 +506,7 @@ class TheMovieDatabase(Provider): params={ "language": lng, }, - not_found_fail=f"Could not find episode {episode_nbr} of season {season} of serie {name} (absolute: {absolute})", + not_found_fail=f"Could not find episode {episode_nbr} of season {season} of serie {name} (absolute: {absolute})", ) logging.debug("TMDb responded: %s", episode) diff --git a/scanner/providers/provider.py b/scanner/providers/provider.py index aef107d0..f9e449e4 100644 --- a/scanner/providers/provider.py +++ b/scanner/providers/provider.py @@ -59,9 +59,7 @@ class Provider: raise NotImplementedError @abstractmethod - async def identify_season( - self, show_id: str, season_number: Optional[int] - ) -> Season: + async def identify_season(self, show_id: str, season_number: int) -> Season: raise NotImplementedError @abstractmethod