From e5ed265e8fa4296136615f92e5b5ccc8dcddd651 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sat, 9 Dec 2023 22:34:49 +0100 Subject: [PATCH] Fix None title bug --- vrobbler/apps/scrobbles/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 2caec0c..0117705 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -687,7 +687,9 @@ class Scrobble(TimeStampedModel): same_lat = last_location.lat == self.media_obj.lat same_lon = last_location.lon == self.media_obj.lon - same_title = last_location.title == self.media_obj.title + same_title = False + if self.media_obj.title: + same_title = last_location.title == self.media_obj.title logger.info(f"{self.timestamp}") logger.info(f"Last lat: {last_location.lat}, last long {last_location.lon}, last title {last_location.title}")