", "")
url = extr(' src="', '"')
- src = text.extract(src, 'href="', '"')[0] if "Source<" in src else ""
+ src = text.extr(src, 'href="', '"') if "Source<" in src else ""
return {
"url" : self.root + url,
@@ -75,7 +75,7 @@ class DynastyscansChapterExtractor(DynastyscansBase, ChapterExtractor):
"title" : text.unescape(match.group(4) or ""),
"author" : text.remove_html(author),
"group" : (text.remove_html(group) or
- text.extract(group, ' alt="', '"')[0] or ""),
+ text.extr(group, ' alt="', '"')),
"date" : text.parse_datetime(extr(
'"icon-calendar"> ', '<'), "%b %d, %Y"),
"lang" : "en",
@@ -83,7 +83,7 @@ class DynastyscansChapterExtractor(DynastyscansBase, ChapterExtractor):
}
def images(self, page):
- data = text.extract(page, "var pages = ", ";\n")[0]
+ data = text.extr(page, "var pages = ", ";\n")
return [
(self.root + img["image"], None)
for img in json.loads(data)
diff --git a/gallery_dl/extractor/erome.py b/gallery_dl/extractor/erome.py
index 992db972..b4dadc7e 100644
--- a/gallery_dl/extractor/erome.py
+++ b/gallery_dl/extractor/erome.py
@@ -55,8 +55,8 @@ class EromeExtractor(Extractor):
yield Message.Directory, data
groups = page.split('