[location] Fix scrobble time
This commit is contained in:
@ -1081,7 +1081,7 @@ def gpslogger_scrobble_location(data_dict: dict, user_id: int) -> Scrobble:
|
||||
"position_provider": provider,
|
||||
}
|
||||
)
|
||||
if scrobble.timestamp:
|
||||
if scrobble.in_progress and scrobble.timestamp:
|
||||
scrobble.playback_position_seconds = (
|
||||
timezone.now() - scrobble.timestamp
|
||||
).seconds
|
||||
|
||||
Reference in New Issue
Block a user