From 257c3a9ba90fe56bc5dfad025a49342089d1533e Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Mon, 25 Apr 2022 23:10:13 -0400 Subject: [PATCH] [37] fix tmdb_list not recognizing shows --- VERSION | 2 +- modules/tmdb.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 89eb5fe1..a5694a0a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.16.5-develop36 +1.16.5-develop37 diff --git a/modules/tmdb.py b/modules/tmdb.py index bd655cdd..3d362a96 100644 --- a/modules/tmdb.py +++ b/modules/tmdb.py @@ -1,6 +1,6 @@ from modules import util from modules.util import Failed -from tmdbapis import TMDbAPIs, TMDbException, NotFound +from tmdbapis import TMDbAPIs, TMDbException, NotFound, Movie logger = util.logger @@ -321,7 +321,7 @@ class TMDb: if method == "tmdb_list": results = self.get_list(tmdb_id) tmdb_name = results.name - ids = [(i.id, result_type) for i in results.get_results(results.total_results)] + ids = [(i.id, "tmdb" if isinstance(i, Movie) else "tmdb_show") for i in results.get_results(results.total_results)] elif method == "tmdb_movie": tmdb_name = self.get_movie(tmdb_id).title ids.append((tmdb_id, "tmdb"))