diff --git a/comicarchive.py b/comicarchive.py index 8d1a170..8ffe6d4 100755 --- a/comicarchive.py +++ b/comicarchive.py @@ -675,7 +675,7 @@ class ComicArchive: self.archive_type = self.ArchiveType.Pdf self.archiver = PdfArchiver(self.path) - if ComicArchive.logo_data is None: + if ComicArchive.logo_data is None and self.default_image_path: #fname = ComicTaggerSettings.getGraphic('nocover.png') fname = self.default_image_path with open(fname, 'rb') as fd: diff --git a/genericmetadata.py b/genericmetadata.py index 05fa627..de1b3fa 100755 --- a/genericmetadata.py +++ b/genericmetadata.py @@ -174,7 +174,8 @@ class GenericMetadata: def overlayCredits(self, new_credits): for c in new_credits: - if c.has_key('primary') and c['primary']: + if 'primary' in c: + # if c.has_key('primary') and c['primary']: primary = True else: primary = False @@ -294,7 +295,8 @@ class GenericMetadata: for c in self.credits: primary = "" - if c.has_key('primary') and c['primary']: + if 'primary' in c: + # if c.has_key('primary') and c['primary']: primary = " [P]" add_string("credit", c['role'] + ": " + c['person'] + primary)