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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user