diff --git a/processor.py b/processor.py index 878b8cb..61a22f7 100644 --- a/processor.py +++ b/processor.py @@ -133,7 +133,7 @@ class TVShowProcessor(Processor): return True def _search_trakt(self, tv_time_show: TVTimeTVShow) -> TraktTVShow: - return TVShowSearcher(tv_time_show).search_trakt(tv_time_show.name) + return TVShowSearcher(tv_time_show).search(tv_time_show.title) def _process(self, tv_time_show: TVTimeTVShow, trakt_show: TraktItem, progress: float) -> None: logging.info( @@ -188,7 +188,7 @@ class MovieProcessor(Processor): return True def _search_trakt(self, tv_time_movie: TVTimeMovie) -> TraktMovie: - return MovieSearcher().search_trakt(tv_time_movie.name) + return MovieSearcher().search(tv_time_movie.title) def _process(self, tv_time_movie: TVTimeMovie, trakt_movie: TraktMovie, progress: float) -> None: logging.info(f"({progress}) - Processing '{tv_time_movie.name}'") diff --git a/searcher.py b/searcher.py index e9527e3..7636676 100644 --- a/searcher.py +++ b/searcher.py @@ -92,6 +92,7 @@ class Title: class TVTimeItem: def __init__(self, name: str, updated_at: str): self.name = name + self.title = Title(name) # Get the date which the show was marked 'watched' in TV Time # and parse the watched date value into a Python object self.date_watched = datetime.strptime(