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

exclude: convert the filename to a string

This commit is contained in:
Johan Andersson 2021-05-10 12:09:35 +02:00
parent dcf0e6fa70
commit 6c172284a8

View File

@ -57,6 +57,6 @@ def exclude(config, name):
if config.get("exclude"):
excludes = config.get("exclude").split(",")
for exclude in excludes:
if exclude in name:
if exclude in str(name.name):
return True
return False