allow '_extractor' fields to be None or empty
This commit is contained in:
@@ -289,8 +289,9 @@ class DownloadJob(Job):
|
|||||||
return
|
return
|
||||||
self.visited.add(url)
|
self.visited.add(url)
|
||||||
|
|
||||||
if "_extractor" in kwdict:
|
cls = kwdict.get("_extractor")
|
||||||
extr = kwdict["_extractor"].from_url(url)
|
if cls:
|
||||||
|
extr = cls.from_url(url)
|
||||||
else:
|
else:
|
||||||
extr = extractor.find(url)
|
extr = extractor.find(url)
|
||||||
if extr:
|
if extr:
|
||||||
|
|||||||
Reference in New Issue
Block a user