Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philipp Wolfer
funkwhale
Commits
34b5eb78
Commit
34b5eb78
authored
Sep 25, 2021
by
Marcos Peña
Committed by
Georg Krause
Sep 25, 2021
Browse files
Resolve "Subsonic API scrobble call not triggering scrobble plugin"
parent
ad80ddfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/subsonic/views.py
View file @
34b5eb78
...
...
@@ -14,6 +14,7 @@ from rest_framework import permissions as rest_permissions
from
rest_framework
import
renderers
,
response
,
viewsets
from
rest_framework.decorators
import
action
from
rest_framework.serializers
import
ValidationError
from
config
import
plugins
import
funkwhale_api
from
funkwhale_api.activity
import
record
...
...
@@ -810,6 +811,11 @@ class SubsonicViewSet(viewsets.GenericViewSet):
)
if
serializer
.
validated_data
[
"submission"
]:
listening
=
serializer
.
save
()
plugins
.
trigger_hook
(
plugins
.
LISTENING_CREATED
,
listening
=
listening
,
confs
=
plugins
.
get_confs
(
request
.
user
),
)
record
.
send
(
listening
)
return
response
.
Response
({})
...
...
changes/changelog.d/1416.bugfix
0 → 100644
View file @
34b5eb78
Fixes subsonic scrobble not triggering plugin hook (#1416)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment