enable '--chapter-filter'

The same filter infrastructure that can be applied to image URLS now
also works for manga chapters and other delegated URLs.

TODO: actually provide any metadata (currently supported is only
deviantart and imagefap).
This commit is contained in:
Mike Fährmann
2017-09-12 16:19:00 +02:00
parent 31cd5b1c1d
commit 0dedbe759c
11 changed files with 43 additions and 27 deletions

View File

@@ -33,4 +33,4 @@ class RecursiveExtractor(Extractor):
yield Message.Version, 1
with extractor.blacklist(blist):
for match in re.finditer(r"https?://[^\s\"']+", page):
yield Message.Queue, match.group(0)
yield Message.Queue, match.group(0), {}