diff options
| author | 2022-11-22 04:28:38 -0500 | |
|---|---|---|
| committer | 2022-11-22 04:28:38 -0500 | |
| commit | 7af5cc29d1c02d20a6890b7b7ba78ab41532a763 (patch) | |
| tree | 4f0366e5653074c7eb31ac7ca59a1ee55f2d736e /gallery_dl/extractor/reactor.py | |
| parent | e59d46ecda74190381b1d2725b0bd9df5c0be8d8 (diff) | |
New upstream version 1.24.0.upstream/1.24.0
Diffstat (limited to 'gallery_dl/extractor/reactor.py')
| -rw-r--r-- | gallery_dl/extractor/reactor.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gallery_dl/extractor/reactor.py b/gallery_dl/extractor/reactor.py index 448dc1b..8b5b6b6 100644 --- a/gallery_dl/extractor/reactor.py +++ b/gallery_dl/extractor/reactor.py @@ -109,13 +109,13 @@ class ReactorExtractor(BaseExtractor): tags.sort() for image in images: - url = text.extract(image, ' src="', '"')[0] + url = text.extr(image, ' src="', '"') if not url: continue if url.startswith("//"): url = "http:" + url - width = text.extract(image, ' width="', '"')[0] - height = text.extract(image, ' height="', '"')[0] + width = text.extr(image, ' width="', '"') + height = text.extr(image, ' height="', '"') image_id = url.rpartition("-")[2].partition(".")[0] num += 1 @@ -125,7 +125,7 @@ class ReactorExtractor(BaseExtractor): url = url.replace("/post/", "/post/full/") if self.gif and ("/post/webm/" in url or "/post/mp4/" in url): - gif_url = text.extract(image, '<a href="', '"')[0] + gif_url = text.extr(image, '<a href="', '"') if not gif_url: continue url = gif_url |
