allow blacklist/whitelist to be empty lists/strings (#1051)
This commit is contained in:
@@ -453,7 +453,7 @@ class DownloadJob(Job):
|
|||||||
|
|
||||||
def _build_blacklist(self):
|
def _build_blacklist(self):
|
||||||
wlist = self.extractor.config("whitelist")
|
wlist = self.extractor.config("whitelist")
|
||||||
if wlist:
|
if wlist is not None:
|
||||||
if isinstance(wlist, str):
|
if isinstance(wlist, str):
|
||||||
wlist = wlist.split(",")
|
wlist = wlist.split(",")
|
||||||
blist = {e.category for e in extractor._list_classes()}
|
blist = {e.category for e in extractor._list_classes()}
|
||||||
@@ -461,7 +461,7 @@ class DownloadJob(Job):
|
|||||||
return blist
|
return blist
|
||||||
|
|
||||||
blist = self.extractor.config("blacklist")
|
blist = self.extractor.config("blacklist")
|
||||||
if blist:
|
if blist is not None:
|
||||||
if isinstance(blist, str):
|
if isinstance(blist, str):
|
||||||
blist = blist.split(",")
|
blist = blist.split(",")
|
||||||
blist = set(blist)
|
blist = set(blist)
|
||||||
|
|||||||
Reference in New Issue
Block a user