[books] Fix two bugs in looking up books

This commit is contained in:
2025-02-25 21:07:45 -05:00
parent baa8dbee46
commit 1f67207f81
2 changed files with 5 additions and 2 deletions

View File

@ -172,7 +172,10 @@ class Book(LongPlayScrobblableMixin):
author_list = []
authors = book_dict.pop("authors")
cover_url = book_dict.pop("cover_url")
genres = book_dict.pop("generes")
try:
genres = book_dict.pop("generes")
except:
genres = []
if authors:
for author_str in authors: