[books] Fix bad lookups for creating books

This commit is contained in:
2025-10-20 16:11:20 -04:00
parent d4f82f2d6f
commit 4b7c5aa58d

View File

@ -262,12 +262,9 @@ class Book(LongPlayScrobblableMixin):
book_dict = lookup_comic_from_comicvine(title)
author_list = []
authors = book_dict.pop("authors")
cover_url = book_dict.pop("cover_url")
try:
genres = book_dict.pop("generes")
except:
genres = []
authors = book_dict.pop("authors", [])
cover_url = book_dict.pop("cover_url", "")
genres = book_dict.pop("generes", [])
if authors:
for author_str in authors: