1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

output: dont try to check empty values

This commit is contained in:
Johan Andersson 2018-05-21 23:37:00 +02:00
parent ae89f52606
commit b77b78b121

View File

@ -207,7 +207,8 @@ def findexpisode(output, directory, name):
orgext == lsext:
return True
elif lsext[1:] not in subtitlefiles and lsext[1:] not in ["m4a"]:
if name.find(output["service"]) > 0 and lsname.find(output["id"]) > 0:
return True
if output["id"] and output["service"]:
if name.find(output["service"]) > 0 and lsname.find(output["id"]) > 0:
return True
return False