From d9dfec81aad17b48fcf1ec8388e3d249242b814e Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sun, 21 Jun 2026 23:00:28 -0400 Subject: [PATCH] [scrobbles] Fix bug where media list scrobble btns didnt work --- vrobbler/apps/scrobbles/constants.py | 18 +++++++++++++----- vrobbler/apps/scrobbles/views.py | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/vrobbler/apps/scrobbles/constants.py b/vrobbler/apps/scrobbles/constants.py index b8a4066..dbffafd 100644 --- a/vrobbler/apps/scrobbles/constants.py +++ b/vrobbler/apps/scrobbles/constants.py @@ -25,16 +25,24 @@ AUTO_FINISH_MEDIA = { } PLAY_AGAIN_MEDIA = { - "videogames": "VideoGame", + "videos": "Video", + "music": "Track", + "podcasts": "PodcastEpisode", + "sports": "SportEvent", "books": "Book", + "videogames": "VideoGame", "boardgames": "BoardGame", - "moods": "Mood", - "bricksets": "BrickSet", + "locations": "GeoLocation", "trails": "Trail", "beers": "Beer", + "puzzles": "Puzzle", "foods": "Food", - "locations": "GeoLocation", - "videos": "Video", + "tasks": "Task", + "webpages": "WebPage", + "lifeevents": "LifeEvent", + "moods": "Mood", + "bricksets": "BrickSet", + "channels": "Channel", "birds": "BirdingLocation", "discgolf": "DiscGolfCourse", } diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index c212e07..e77e907 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -918,7 +918,7 @@ def scrobble_start(request, media_uuid): if last_scrobble and last_scrobble.logdata: next_page = last_scrobble.logdata.page_end + 1 log_data = {"page_start": next_page} - media_obj.scrobble_for_user(user_id, log=log_data) + scrobble = media_obj.scrobble_for_user(user_id, log=log_data) if scrobble: messages.add_message(