mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Changed Author reporting to favor Null entries
This commit is contained in:
@@ -94,8 +94,7 @@ class Catalogue:
|
||||
title = book['path'].split('/')[-1].rsplit('.', 1)[0]
|
||||
else: title = title.contents[0]
|
||||
author = soup.find("dc:creator")
|
||||
if author == None: author = 'Unlisted'
|
||||
else: author = author.contents[0]
|
||||
if author != None: author = author.contents[0]
|
||||
try: cover = self.extract_cover_image(book_zip, book)
|
||||
except IndexError:
|
||||
# cover = self.extract_cover_html(book_zip, book)
|
||||
|
||||
Reference in New Issue
Block a user