mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[10] ignore mdblist items that have no TMDb ID
This commit is contained in:
parent
8b668f0c81
commit
ca8d960bab
2 changed files with 2 additions and 2 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
2.0.1-develop9
|
||||
2.0.1-develop10
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue