Commit 45ef300f authored by echel0n's avatar echel0n
Browse files

skip search cache results if series provider id is none

parent 2f2a7080
......@@ -286,6 +286,10 @@ class TVCache(object):
result.series_id = int(curResult["series_id"])
result.series_provider_id = curResult["series_provider_id"]
# skip if series provider id is not set
if not curResult["series_provider_id"]:
continue
# convert to series provider id enum
if not isinstance(result.series_provider_id, SeriesProviderID):
result.series_provider_id = SeriesProviderID[curResult["series_provider_id"]]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment