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

findexpisode: don’t run the second section for .srt files

this fixes: #199
This commit is contained in:
Johan Andersson 2015-01-01 22:11:27 +01:00
parent 6e144ab45d
commit f144bfb21f

View File

@ -159,7 +159,7 @@ def findexpisode(directory, service, name):
if extention == "srt":
if name.find(service) and match.group(1) == videoid and match.group(2) == extention:
return True
else:
elif match.group(2) != "srt":
if name.find(service) and match.group(1) == videoid:
return True