mirror of
https://github.com/SinTan1729/TvTimeToTrakt.git
synced 2025-04-19 09:30:01 -05:00
Small cleanup
This commit is contained in:
parent
52349668d7
commit
d236d8d337
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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}'")
|
||||
|
|
Loading…
Reference in a new issue