Stop location scrobbles properly
This commit is contained in:
@ -703,9 +703,9 @@ class Scrobble(TimeStampedModel):
|
|||||||
f"No - We've moved, start a new scrobble: {self.media_obj}"
|
f"No - We've moved, start a new scrobble: {self.media_obj}"
|
||||||
)
|
)
|
||||||
# TODO maybe this should go to `update`?
|
# TODO maybe this should go to `update`?
|
||||||
last = self.previous_all
|
self.played_to_completion = True
|
||||||
last.played_to_completion = True
|
self.stop_timestamp = timezone.now()
|
||||||
last.save(update_fields=["played_to_completion"])
|
self.save(update_fields=["played_to_completion", "stop_timestamp"])
|
||||||
updatable = False
|
updatable = False
|
||||||
return updatable
|
return updatable
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user