From: Fredrik Tolf Date: Wed, 4 Dec 2013 00:12:35 +0000 (+0100) Subject: Fixed Batoto reversal bug. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=687f2ed3a817fb4cd40364522254724d68d015ee;p=automanga.git Fixed Batoto reversal bug. --- diff --git a/manga/batoto.py b/manga/batoto.py index 4e957b5..6869973 100644 --- a/manga/batoto.py +++ b/manga/batoto.py @@ -109,9 +109,12 @@ class manga(lib.manga): cid = m.group(1) url = self.lib.base + "read/_/" + cid name = ch.td.a.text - cch.append(chapter(self, [(self, len(cch))], cid, name, url)) + cch.append((cid, name, url)) cch.reverse() - self.cch = cch + rch = [] + for n, (cid, name, url) in enumerate(cch): + rch.append(chapter(self, [(self, n)], cid, name, url)) + self.cch = rch return self.cch def __str__(self):