From b97aa8936e8144ad25c86e5ad7631b9253f1c6c8 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 15 Oct 2024 14:40:05 -0400 Subject: [PATCH] [scrobbles] Fix if past seconds is zero --- vrobbler/apps/scrobbles/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 0c4db60..c438b64 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -1246,6 +1246,7 @@ class Scrobble(TimeStampedModel): # Set our playback seconds, and calc long play seconds self.playback_position_seconds = seconds_elapsed + past_seconds = 0 if self.previous: past_seconds = self.previous.long_play_seconds