implement 'chapter-reverse' option (#149)

Setting it to `true` will start with the latest chapter instead of the
first one.
server
Mike Fährmann 6 years ago
parent e95b24f056
commit 06cbf5f9c4
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -797,6 +797,18 @@ Description Categorize tags by their respective types
=========== =====
extractor.[manga-extractor].chapter-reverse
-------------------------------------------
=========== =====
Type ``bool``
Default ``false``
Description Reverse the order of chapter URLs extracted from manga pages.
* `true`: Start with the latest chapter
* `false`: Start with the first chapter
=========== =====
Downloader Options
==================

@ -248,6 +248,9 @@ class MangaExtractor(Extractor):
Extractor.__init__(self)
self.url = url or self.scheme + "://" + match.group(1)
if self.config("chapter-reverse", False):
self.reverse = not self.reverse
def items(self):
page = self.request(self.url).text

Loading…
Cancel
Save