1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[simplyhentai] avoid redirects for all-pages.json (#89)

This commit is contained in:
Mike Fährmann 2018-06-01 21:50:29 +02:00
parent ad14de19c6
commit a47c6136cd
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 3 additions and 6 deletions

View File

@ -34,11 +34,6 @@ class MangadexChapterExtractor(MangadexExtractor, ChapterExtractor):
"count": 64,
"keyword": "1f6fb237a96cdf05b436ae2a37a4436e717bbb30",
}),
# abnormal chapter string ("Vol. 1 Ch. 6 \ 5.1")
("https://mangadex.org/chapter/255540", {
"count": 27,
"keyword": "fe5e3ece1bc6463350fde36f7e47e29d093fed84",
}),
# NotFoundError
("https://mangadex.org/chapter/1", {
"exception": exception.NotFoundError,

View File

@ -69,7 +69,8 @@ class SimplyhentaiGalleryExtractor(ChapterExtractor):
}
def get_images(self, _):
images = self.request(self.url + "/all-pages.json").json()
headers = {"Accept": "application/json"}
images = self.request(self.url + "/all-pages", headers=headers).json()
return [
(urls["full"], {"image_id": text.parse_int(image_id)})
for image_id, urls in sorted(images.items())

View File

@ -22,6 +22,7 @@ TRAVIS_SKIP = {
# temporary issues, etc.
BROKEN = {
"dokireader", # server down
}