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

service.exclude: check options.exclude is not empty

This commit is contained in:
Johan Andersson 2014-12-22 18:35:58 +01:00
parent f5eb3c8749
commit bbbd779282

View File

@ -51,9 +51,10 @@ class Service(object):
pass
def exclude(self, options):
for i in options.exclude:
if i in options.output:
return True
if options.exclude:
for i in options.exclude:
if i in options.output:
return True
return False
# the options parameter is unused, but is part of the