Fix bug with stopping wrong scrobble
This commit is contained in:
@ -706,10 +706,8 @@ class Scrobble(TimeStampedModel):
|
|||||||
logger.info(
|
logger.info(
|
||||||
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`?
|
# Stop the previous location scrobble
|
||||||
self.played_to_completion = True
|
self.previous_all.stop()
|
||||||
self.stop_timestamp = timezone.now()
|
|
||||||
self.save(update_fields=["played_to_completion", "stop_timestamp"])
|
|
||||||
updatable = False
|
updatable = False
|
||||||
return updatable
|
return updatable
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user