[scrobbles] Fix if past seconds is zero

This commit is contained in:
2024-10-15 14:40:05 -04:00
parent 98924e362e
commit b97aa8936e

View File

@ -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