|
|
|
@ -122,10 +122,10 @@ class TVDbAPI:
|
|
|
|
|
logger.info("Processing {}: {}".format(pretty, data))
|
|
|
|
|
if method == "tvdb_show":
|
|
|
|
|
try: show_ids.append(self.get_series(language, tvdb_id=int(data)))
|
|
|
|
|
except ValueError: show_ids.append(self.get_series(language, tmdb_url=data))
|
|
|
|
|
except ValueError: show_ids.append(self.get_series(language, tvdb_url=data))
|
|
|
|
|
elif method == "tvdb_movie":
|
|
|
|
|
try: movie_ids.append(self.get_movie(language, tvdb_id=int(data)))
|
|
|
|
|
except ValueError: movie_ids.append(self.get_movie(language, tmdb_url=data))
|
|
|
|
|
except ValueError: movie_ids.append(self.get_movie(language, tvdb_url=data))
|
|
|
|
|
elif method == "tvdb_list":
|
|
|
|
|
tmdb_ids, tvdb_ids = self.get_tvdb_ids_from_url(data, language)
|
|
|
|
|
movie_ids.extend(tmdb_ids)
|
|
|
|
|