X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Flib.py;h=373c93258a95107b7145433ea47ccc90cb20b5aa;hb=d9163efe24c7d8653fa1880612ab8e0864d5ae9d;hp=2a11cb10d41f0698591e667f1eea436253942913;hpb=53395a9dd29c3dfdf3def032e85d8c3a90e1bf22;p=automanga.git diff --git a/manga/lib.py b/manga/lib.py index 2a11cb1..373c932 100644 --- a/manga/lib.py +++ b/manga/lib.py @@ -46,8 +46,8 @@ class pagetree(object): """Returns a list of the IDs necessary to resolve this node from the root node.""" if len(self.stack) == 0: - raise Exception("Cannot get ID list on root node.") - return [n.id for n, i in self.stack[1:]] + [self.id] + return [] + return self.stack[-1][0].idlist() + [self.id] def byidlist(self, idlist): if len(idlist) == 0: