From 3ed6b174f597cccc19296ff95e187ec896f74e30 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 12 Feb 2021 17:07:31 -0500 Subject: [PATCH] fix for #24 --- modules/tvdb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/tvdb.py b/modules/tvdb.py index 73c7a381..f483305e 100644 --- a/modules/tvdb.py +++ b/modules/tvdb.py @@ -121,11 +121,11 @@ class TVDbAPI: if status_message: 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, tvdb_url=data)) + try: show_ids.append(self.get_series(language, tvdb_id=int(data)).id) + except ValueError: show_ids.append(self.get_series(language, tvdb_url=data).id) 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, tvdb_url=data)) + try: movie_ids.append(self.get_movie(language, tvdb_id=int(data)).id) + except ValueError: movie_ids.append(self.get_movie(language, tvdb_url=data).id) elif method == "tvdb_list": tmdb_ids, tvdb_ids = self.get_tvdb_ids_from_url(data, language) movie_ids.extend(tmdb_ids)