From 4327ff499cd6ac3c3b281c8f31c365ce032efd34 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 8 Dec 2023 15:02:48 +0100 Subject: [PATCH] Check for similar title location if we've gotten that far --- vrobbler/apps/scrobbles/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index acae520..9f8e052 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -649,7 +649,10 @@ class Scrobble(TimeStampedModel): if self.previous: same_lat = self.previous.media_obj.lat == self.media_obj.lat same_lon = self.previous.media_obj.lon == self.media_obj.lon - if same_lat and same_lon: # We have moved + same_title = ( + self.previous.media_obj.title == self.media_obj.title + ) + if (same_lat and same_lon) or same_title: logger.info("Yes - We're in the same place!") updatable = True else: