[scrobbles] Fix bug where media list scrobble btns didnt work
This commit is contained in:
@ -25,16 +25,24 @@ AUTO_FINISH_MEDIA = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PLAY_AGAIN_MEDIA = {
|
PLAY_AGAIN_MEDIA = {
|
||||||
"videogames": "VideoGame",
|
"videos": "Video",
|
||||||
|
"music": "Track",
|
||||||
|
"podcasts": "PodcastEpisode",
|
||||||
|
"sports": "SportEvent",
|
||||||
"books": "Book",
|
"books": "Book",
|
||||||
|
"videogames": "VideoGame",
|
||||||
"boardgames": "BoardGame",
|
"boardgames": "BoardGame",
|
||||||
"moods": "Mood",
|
"locations": "GeoLocation",
|
||||||
"bricksets": "BrickSet",
|
|
||||||
"trails": "Trail",
|
"trails": "Trail",
|
||||||
"beers": "Beer",
|
"beers": "Beer",
|
||||||
|
"puzzles": "Puzzle",
|
||||||
"foods": "Food",
|
"foods": "Food",
|
||||||
"locations": "GeoLocation",
|
"tasks": "Task",
|
||||||
"videos": "Video",
|
"webpages": "WebPage",
|
||||||
|
"lifeevents": "LifeEvent",
|
||||||
|
"moods": "Mood",
|
||||||
|
"bricksets": "BrickSet",
|
||||||
|
"channels": "Channel",
|
||||||
"birds": "BirdingLocation",
|
"birds": "BirdingLocation",
|
||||||
"discgolf": "DiscGolfCourse",
|
"discgolf": "DiscGolfCourse",
|
||||||
}
|
}
|
||||||
|
|||||||
@ -918,7 +918,7 @@ def scrobble_start(request, media_uuid):
|
|||||||
if last_scrobble and last_scrobble.logdata:
|
if last_scrobble and last_scrobble.logdata:
|
||||||
next_page = last_scrobble.logdata.page_end + 1
|
next_page = last_scrobble.logdata.page_end + 1
|
||||||
log_data = {"page_start": next_page}
|
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:
|
if scrobble:
|
||||||
messages.add_message(
|
messages.add_message(
|
||||||
|
|||||||
Reference in New Issue
Block a user