From: Tomas Wenström Date: Mon, 15 Nov 2010 18:41:36 +0000 (+0100) Subject: Bugfix X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=7939bf819a2ff5bec28937c7e37c2693a132a7a0;p=automanga.git Bugfix --- diff --git a/automanga.py b/automanga.py index 1952156..7b6aacf 100755 --- a/automanga.py +++ b/automanga.py @@ -306,6 +306,9 @@ class Directory(object): def __iter__(self): return self._opened_nodes.itervalues() + def __contains__(self, name): + return name in self._nodes + def __getitem__(self, name): if name in self._nodes: return getattr(self, name) @@ -445,7 +448,7 @@ class Profile(object): if manga.title() not in self.mangas: self.mangas.add_file(manga.title()) file = self.mangas[manga.title()] - file.page = manga.mark + file.page = manga.mark.name file.save() def load_manga(self, path):