[10] ignore mdblist items that have no TMDb ID

This commit is contained in:
meisnate12 2024-05-14 12:00:32 -04:00
parent 8b668f0c81
commit ca8d960bab
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
2.0.1-develop9 2.0.1-develop10

View file

@ -220,7 +220,7 @@ class MDBList:
raise Failed(f"MDBList Error: Invalid Response {response}") raise Failed(f"MDBList Error: Invalid Response {response}")
results = [] results = []
for item in response: 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")) results.append((item["id"], "tmdb" if item["mediatype"] == "movie" else "tmdb_show"))
return results return results
except JSONDecodeError: except JSONDecodeError: