provide type information for Queue messages

Child extractors are now directly constructed with Extractor.from_url()
if the extractor class is known beforehand, instead of using
extractor.find() and searching through all possible extractor classes.
This commit is contained in:
Mike Fährmann
2019-02-12 21:26:41 +01:00
parent 2e516a1e3e
commit 61741d7333
16 changed files with 53 additions and 25 deletions

View File

@@ -64,6 +64,7 @@ class PhotobucketAlbumExtractor(Extractor):
if self.config("subalbums", True):
for album in self.subalbums():
album["_extractor"] = PhotobucketAlbumExtractor
yield Message.Queue, album["url"], album
def images(self):