From 6c172284a8a319adbc68b1fccdaca8a3f22a05f2 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 10 May 2021 12:09:35 +0200 Subject: [PATCH] exclude: convert the filename to a string --- lib/svtplay_dl/utils/text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/utils/text.py b/lib/svtplay_dl/utils/text.py index 772bb18..4d2b25c 100644 --- a/lib/svtplay_dl/utils/text.py +++ b/lib/svtplay_dl/utils/text.py @@ -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