1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 04:32:51 +01:00

[reactor] fix image URLs

This commit is contained in:
Mike Fährmann 2019-08-16 14:07:22 +02:00
parent 32447d0d24
commit c50d60a53d
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 6 additions and 4 deletions

View File

@ -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/", {

View File

@ -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",

View File

@ -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):