diff --git a/PROJECT.org b/PROJECT.org index c7ea815..a229ca2 100644 --- a/PROJECT.org +++ b/PROJECT.org @@ -88,7 +88,7 @@ fetching and simple saving. *** Metadata sources **** Scraper -* Backlog [4/24] :vrobbler:project:personal: +* Backlog [5/25] :vrobbler:project:personal: ** TODO [#C] Create small utility to clean up tracks scrobbled with wonky playback times :bug:music:scrobbles: :PROPERTIES: :ID: 702462cf-d54b-48c6-8a7c-78b8de751deb @@ -594,7 +594,10 @@ named constants for maintainability. - ~vrobbler/apps/webpages/models.py~ (line 290) -- ="url"= - ~vrobbler/apps/scrobbles/importers/tsv.py~ (line 55) -- ="S"= completion status -** TODO [#B] Allow marking media as long play complete from detail page :templates:scrobbles:longplay: +** DONE [#B] Allow marking media as long play complete from detail page :templates:scrobbles:longplay: +:PROPERTIES: +:ID: 2c314768-be97-9b10-d13c-9cfd0f38a64e +:END: ** DONE [#A] Fix how long play scrobbles are tracked :scrobbles:longplay:serial: :PROPERTIES: :ID: 908b0493-cabf-40c1-825f-cd59a8ad0f7a diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index 464a3f3..71c28d0 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -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." diff --git a/vrobbler/templates/_longplay_scrobblable_list.html b/vrobbler/templates/_longplay_scrobblable_list.html index b5cdf7b..2589376 100644 --- a/vrobbler/templates/_longplay_scrobblable_list.html +++ b/vrobbler/templates/_longplay_scrobblable_list.html @@ -9,6 +9,7 @@
{{scrobbles.count}} scrobbles
+ {% if charts %}{{scrobbles.count}} scrobbles
+{{scrobbles.count}} scrobbles
{{scrobbles.count}} scrobbles