From c50d60a53d9cbaa76944c030a0a68c8eb2312d2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 16 Aug 2019 14:07:22 +0200 Subject: [PATCH] [reactor] fix image URLs --- gallery_dl/extractor/luscious.py | 2 +- gallery_dl/extractor/reactor.py | 6 ++++-- gallery_dl/extractor/wikiart.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gallery_dl/extractor/luscious.py b/gallery_dl/extractor/luscious.py index 879d38b2..a73eb86b 100644 --- a/gallery_dl/extractor/luscious.py +++ b/gallery_dl/extractor/luscious.py @@ -62,7 +62,7 @@ class LusciousAlbumExtractor(LusciousBase, GalleryExtractor): test = ( ("https://luscious.net/albums/okinami-no-koigokoro_277031/", { "url": "7e4984a271a1072ac6483e4228a045895aff86f3", - "keyword": "ab4e5b71583fd439b4c8012a642aa8b58d8d0758", + "keyword": "07c0b915f2ab1cc3bbf28b76e7950fccee1213f3", "content": "b3a747a6464509440bd0ff6d1267e6959f8d6ff3", }), ("https://luscious.net/albums/virgin-killer-sweater_282582/", { diff --git a/gallery_dl/extractor/reactor.py b/gallery_dl/extractor/reactor.py index 59d502ae..f97454b7 100644 --- a/gallery_dl/extractor/reactor.py +++ b/gallery_dl/extractor/reactor.py @@ -117,6 +117,8 @@ class ReactorExtractor(SharedConfigMixin, Extractor): url = text.extract(image, ' src="', '"')[0] if not url: continue + if url.startswith("//"): + url = "http:" + url width = text.extract(image, ' width="', '"')[0] height = text.extract(image, ' height="', '"')[0] image_id = url.rpartition("-")[2].partition(".")[0] @@ -268,8 +270,8 @@ class JoyreactorPostExtractor(ReactorPostExtractor): "keyword": "dbe148d576f2fc9431020c557ddb78f449e48c47", }), ("http://joyreactor.com/post/3668724", { # youtube embed - "url": "be2589e2e8f3ffcaf41b34bc28bfad850ccea34a", - "keyword": "da61b9e2887db95759950df5fb89c9d32f8e7651", + "url": "bf1666eddcff10c9b58f6be63fa94e4e13074214", + "keyword": "989112c7888e9cc80fd35870180c6c98165d953b", }), ("http://joyreactor.cc/post/1299", { # "malformed" JSON "url": "ac900743ed7cf1baf3db3b531c3bc414bf1ffcde", diff --git a/gallery_dl/extractor/wikiart.py b/gallery_dl/extractor/wikiart.py index b9c223c2..463733fd 100644 --- a/gallery_dl/extractor/wikiart.py +++ b/gallery_dl/extractor/wikiart.py @@ -70,7 +70,7 @@ class WikiartArtistExtractor(WikiartExtractor): pattern = BASE_PATTERN + r"/(?!\w+-by-)([\w-]+)" test = ("https://www.wikiart.org/en/thomas-cole", { "url": "f1eee8158f5b8b7380382ab730a8f53884715c8b", - "keyword": "b62678394ce645815963883d5c9642255307225f", + "keyword": "c61f5a4774b977106000e9554d19cfb9438a7032", }) def __init__(self, match):