1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[mangadex] fix relative page URLs

This commit is contained in:
Mike Fährmann 2018-08-25 11:06:28 +02:00
parent 590c0b3ad5
commit 2af2bb7911
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -101,6 +101,8 @@ class MangadexChapterExtractor(MangadexExtractor):
def get_images(self):
"""Return a list of all image URLs"""
base = self.data["server"] + self.data["hash"] + "/"
if base.startswith("/"):
base = text.urljoin(self.root, base)
return [base + page for page in self.data["page_array"]]