summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/common.py')
-rw-r--r--gallery_dl/extractor/common.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/gallery_dl/extractor/common.py b/gallery_dl/extractor/common.py
index 9b010c5..0dd05ef 100644
--- a/gallery_dl/extractor/common.py
+++ b/gallery_dl/extractor/common.py
@@ -526,12 +526,15 @@ class Extractor():
if include == "all":
include = extractors
elif isinstance(include, str):
- include = include.split(",")
+ include = include.replace(" ", "").split(",")
result = [(Message.Version, 1)]
for category in include:
- if category in extractors:
+ try:
extr, url = extractors[category]
+ except KeyError:
+ self.log.warning("Invalid include '%s'", category)
+ else:
result.append((Message.Queue, url, {"_extractor": extr}))
return iter(result)