From 7cb818b585227ecdd88354b670ce9dc302ba4d5f Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 26 Jan 2024 22:39:59 -0500 Subject: [PATCH] Fix issue where pages may not come back from OL --- vrobbler/apps/books/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrobbler/apps/books/models.py b/vrobbler/apps/books/models.py index e46fb1c..f64afe3 100644 --- a/vrobbler/apps/books/models.py +++ b/vrobbler/apps/books/models.py @@ -182,7 +182,7 @@ class Book(LongPlayScrobblableMixin): ) # 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") if not isinstance(data.get("pages"), int):