Small cleanup

This commit is contained in:
Markus Nyman 2023-01-17 01:39:43 +02:00
parent 52349668d7
commit d236d8d337
2 changed files with 3 additions and 3 deletions

View file

@ -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 1. Go to "Settings" under your profile
2. Select ["Your API Applications"](https://trakt.tv/oauth/applications) 2. Select ["Your API Applications"](https://trakt.tv/oauth/applications)
3. Select "New Application" 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:" 5. Paste "urn:ietf:wg:oauth:2.0:oob" into "Redirect uri:"
6. Click "Save App" 6. Click "Save App"
7. Make note of your details to be used later. 7. Make note of your details to be used later.

View file

@ -224,7 +224,7 @@ class TVTimeMovie(TVTimeItem):
class Searcher(ABC): class Searcher(ABC):
def __init__(self, user_matched_table: Table): def __init__(self, user_matched_table: Table):
self.name = "" self.name = ""
self.items_with_same_name = None self.items_with_same_name: Optional[TraktItem] = None
self._user_matched_table = user_matched_table self._user_matched_table = user_matched_table
def search(self, title: Title) -> Optional[TraktItem]: def search(self, title: Title) -> Optional[TraktItem]:
@ -541,7 +541,7 @@ class MovieProcessor(Processor):
return True return True
def _search_trakt(self, tv_time_movie: TVTimeMovie) -> TraktMovie: 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: def _process(self, tv_time_movie: TVTimeMovie, trakt_movie: TraktMovie, progress: float) -> None:
logging.info(f"({progress}) - Processing '{tv_time_movie.name}'") logging.info(f"({progress}) - Processing '{tv_time_movie.name}'")