[simplyhentai] fix image URLs

pull/465/head
Mike Fährmann 5 years ago
parent 4409d00141
commit 87a87bff7e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -94,7 +94,8 @@ class BobxIdolExtractor(BobxExtractor):
subcategory = "idol"
pattern = r"(?:https?://)?(?:www\.)?bobx\.com/([^/]+/[^/?&#]+)/?$"
test = ("http://www.bobx.com/idol/rin-okabe/", {
"url": "74d80bfcd53b738b31909bb42e5cc97c41b475b8",
"pattern": BobxGalleryExtractor.pattern,
"count": ">= 6",
})
def items(self):
@ -107,6 +108,5 @@ class BobxIdolExtractor(BobxExtractor):
for part in text.extract_iter(page, '="photoset/', '"'):
# skip every other entry
skip = not skip
if skip:
continue
if not skip:
yield Message.Queue, "{}photoset/{}".format(url, part), data

@ -67,7 +67,10 @@ class SimplyhentaiGalleryExtractor(GalleryExtractor):
headers = {"Accept": "application/json"}
images = self.request(url, headers=headers).json()
return [
(urls["full"], {"image_id": text.parse_int(image_id)})
(
urls["full"].replace("/giant_thumb_", "/"),
{"image_id": text.parse_int(image_id)},
)
for image_id, urls in sorted(images.items())
]

@ -27,7 +27,6 @@ TRAVIS_SKIP = {
# temporary issues, etc.
BROKEN = {
"8chan",
"hentaifoundry",
"mangapark",
}

Loading…
Cancel
Save