From d236d8d337c067ad7547ef865944a4d74393ae7f Mon Sep 17 00:00:00 2001 From: Markus Nyman Date: Tue, 17 Jan 2023 01:39:43 +0200 Subject: [PATCH] Small cleanup --- README.md | 2 +- TimeToTrakt.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b120a1f..768e6e2 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ TV Time's API is not open. In order to get access to your personal data, you wil 1. Go to "Settings" under your profile 2. Select ["Your API Applications"](https://trakt.tv/oauth/applications) 3. Select "New Application" -4. Provide a name into "Name" e.g John Smith Import from TV Time +4. Provide a name into "Name" e.g. John Smith Import from TV Time 5. Paste "urn:ietf:wg:oauth:2.0:oob" into "Redirect uri:" 6. Click "Save App" 7. Make note of your details to be used later. diff --git a/TimeToTrakt.py b/TimeToTrakt.py index 8c62dbd..2b49609 100644 --- a/TimeToTrakt.py +++ b/TimeToTrakt.py @@ -224,7 +224,7 @@ class TVTimeMovie(TVTimeItem): class Searcher(ABC): def __init__(self, user_matched_table: Table): self.name = "" - self.items_with_same_name = None + self.items_with_same_name: Optional[TraktItem] = None self._user_matched_table = user_matched_table def search(self, title: Title) -> Optional[TraktItem]: @@ -541,7 +541,7 @@ class MovieProcessor(Processor): return True def _search_trakt(self, tv_time_movie: TVTimeMovie) -> TraktMovie: - return MovieSearcher().search(Title(tv_time_movie.name)) + return MovieSearcher().search_trakt(tv_time_movie.name) def _process(self, tv_time_movie: TVTimeMovie, trakt_movie: TraktMovie, progress: float) -> None: logging.info(f"({progress}) - Processing '{tv_time_movie.name}'")