From 3368498effebd4d33de2faaae067e882ca587a84 Mon Sep 17 00:00:00 2001 From: mza921 Date: Thu, 21 Jan 2021 02:38:50 -0800 Subject: [PATCH] Fix TMDb trending for TV shows --- app/imdb_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/imdb_tools.py b/app/imdb_tools.py index 11699cc..d97ddaa 100644 --- a/app/imdb_tools.py +++ b/app/imdb_tools.py @@ -292,9 +292,9 @@ def tmdb_get_shows(config_path, plex, plex_map, data, method): for tshow in tmdb_shows: count += 1 t_tvs.append(tshow.id) - if count == amount: + if count == data: break - if count == amount: + if count == data: break elif method in ["tmdb_popular", "tmdb_top_rated", "tmdb_trending_daily", "tmdb_trending_weekly"]: trending = Trending()