[longplay] Add finish long play button
All checks were successful
build / test (push) Successful in 1m53s

This commit is contained in:
2026-06-15 14:15:34 -04:00
parent 947713d44a
commit c2138b3ac6
7 changed files with 17 additions and 2 deletions

View File

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