[videos] Add video to play again media
This commit is contained in:
@ -20,6 +20,7 @@ PLAY_AGAIN_MEDIA = {
|
|||||||
"beers": "Beer",
|
"beers": "Beer",
|
||||||
"foods": "Food",
|
"foods": "Food",
|
||||||
"locations": "GeoLocation",
|
"locations": "GeoLocation",
|
||||||
|
"videos": "Video",
|
||||||
}
|
}
|
||||||
|
|
||||||
MEDIA_END_PADDING_SECONDS = {
|
MEDIA_END_PADDING_SECONDS = {
|
||||||
|
|||||||
@ -604,8 +604,7 @@ def scrobble_start(request, uuid):
|
|||||||
"[scrobble_start] media object not found",
|
"[scrobble_start] media object not found",
|
||||||
extra={"uuid": uuid, "user_id": user.id},
|
extra={"uuid": uuid, "user_id": user.id},
|
||||||
)
|
)
|
||||||
# TODO Log that we couldn't find a media obj to scrobble
|
raise Exception("No media object provided to scrobble")
|
||||||
return
|
|
||||||
|
|
||||||
scrobble = None
|
scrobble = None
|
||||||
user_id = request.user.id
|
user_id = request.user.id
|
||||||
|
|||||||
Reference in New Issue
Block a user