[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

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"]]