From ca8d960bab7379c7661accbd2077f5bf6173903b Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Tue, 14 May 2024 12:00:32 -0400 Subject: [PATCH] [10] ignore mdblist items that have no TMDb ID --- VERSION | 2 +- modules/mdblist.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 0c791ca5..134aa9cd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.1-develop9 +2.0.1-develop10 diff --git a/modules/mdblist.py b/modules/mdblist.py index 4556b4a9..4f5ad22f 100644 --- a/modules/mdblist.py +++ b/modules/mdblist.py @@ -220,7 +220,7 @@ class MDBList: raise Failed(f"MDBList Error: Invalid Response {response}") results = [] for item in response: - if item["mediatype"] in ["movie", "show"]: + if item["mediatype"] in ["movie", "show"] and item["id"]: results.append((item["id"], "tmdb" if item["mediatype"] == "movie" else "tmdb_show")) return results except JSONDecodeError: