[longplay] Add finish long play button
All checks were successful
build / test (push) Successful in 1m53s
All checks were successful
build / test (push) Successful in 1m53s
This commit is contained in:
@ -928,6 +928,12 @@ def scrobble_longplay_finish(request, uuid):
|
||||
messages.SUCCESS,
|
||||
f"Long play of {media_obj} finished.",
|
||||
)
|
||||
elif last_scrobble and last_scrobble.long_play_complete == True:
|
||||
messages.add_message(
|
||||
request,
|
||||
messages.INFO,
|
||||
f"Long play of {media_obj} was already completed.",
|
||||
)
|
||||
else:
|
||||
messages.add_message(
|
||||
request, messages.ERROR, f"Media with uuid {uuid} not found."
|
||||
|
||||
Reference in New Issue
Block a user