summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/reactor.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/reactor.py')
-rw-r--r--gallery_dl/extractor/reactor.py8
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