mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 20:22:36 +01:00
[simplyhentai] avoid redirects for all-pages.json (#89)
This commit is contained in:
parent
ad14de19c6
commit
a47c6136cd
@ -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,
|
||||
|
@ -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())
|
||||
|
@ -22,6 +22,7 @@ TRAVIS_SKIP = {
|
||||
|
||||
# temporary issues, etc.
|
||||
BROKEN = {
|
||||
"dokireader", # server down
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user