propagate 'match' to base extractor constructor

This commit is contained in:
Mike Fährmann
2019-02-11 13:31:10 +01:00
parent ade86da7a1
commit 4b1880fa5e
70 changed files with 150 additions and 155 deletions

View File

@@ -48,7 +48,7 @@ class PhotobucketAlbumExtractor(Extractor):
)
def __init__(self, match):
Extractor.__init__(self)
Extractor.__init__(self, match)
self.album_path = ""
self.url = match.group(0)
self.root = "http://" + match.group(1)
@@ -127,7 +127,7 @@ class PhotobucketImageExtractor(Extractor):
)
def __init__(self, match):
Extractor.__init__(self)
Extractor.__init__(self, match)
self.url = match.group(0)
self.user = match.group(1) or match.group(3)
self.media_id = match.group(2)