1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[mangadex] respect 'chapter-reverse' settings (closes #1194)

The extractor in question doesn't inherit from MangaExtractor
and therefore didn't do this automatically.
This commit is contained in:
Mike Fährmann 2020-12-22 15:08:10 +01:00
parent 3bd08acc8f
commit 2c4d4a75db
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -196,5 +196,8 @@ class MangadexMangaExtractor(MangadexExtractor):
"_extractor": MangadexChapterExtractor,
})
results.sort(key=lambda x: (x["chapter"], x["chapter_minor"]))
results.sort(
key=lambda x: (x["chapter"], x["chapter_minor"]),
reverse=self.config("chapter-reverse", False),
)
return results