From fd20093c9639e8faffd9b4e3cb068e749663dea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 8 Oct 2020 14:55:21 +0200 Subject: [PATCH] allow blacklist/whitelist to be empty lists/strings (#1051) --- gallery_dl/job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 47ff9a5d..b62240b5 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -453,7 +453,7 @@ class DownloadJob(Job): def _build_blacklist(self): wlist = self.extractor.config("whitelist") - if wlist: + if wlist is not None: if isinstance(wlist, str): wlist = wlist.split(",") blist = {e.category for e in extractor._list_classes()} @@ -461,7 +461,7 @@ class DownloadJob(Job): return blist blist = self.extractor.config("blacklist") - if blist: + if blist is not None: if isinstance(blist, str): blist = blist.split(",") blist = set(blist)