implement 'chapter-reverse' option (#149)

Setting it to `true` will start with the latest chapter instead of the
first one.
This commit is contained in:
Mike Fährmann
2019-01-07 18:22:33 +01:00
parent e95b24f056
commit 06cbf5f9c4
2 changed files with 15 additions and 0 deletions

View File

@@ -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