Fix issue where pages may not come back from OL

This commit is contained in:
2024-01-26 22:39:59 -05:00
parent 1a5cd5106f
commit 7cb818b585

View File

@ -182,7 +182,7 @@ class Book(LongPlayScrobblableMixin):
) )
# If we don't know pages, don't overwrite existing with None # If we don't know pages, don't overwrite existing with None
if data.get("pages") == None: if "pages" in data.keys() and data.get("pages") == None:
data.pop("pages") data.pop("pages")
if not isinstance(data.get("pages"), int): if not isinstance(data.get("pages"), int):