Closed aereaux closed 2 years ago
Thanks for reporting and analyzing this bug.
Does some merging need to go on between the two lists, or can the script_arguments list just be passed in as is (like it was before)?
Just like before.
Bug should be fixed with above commit, can you test?
Edit: there was an another bug in the script itself: replace MYMPD_API_DATABASE_SONGDETAILS with MYMPD_API_SONG_DETAILS
Yeah, I noticed the bug in the script and fixed it earlier.
Great thanks, it works now with this change!
myMPD version: [e.g. 8.1.0]
Describe the bug
With the upgrade to v10.0.0, my Listenbrainz feedback script now errors with:
It looks like the "vote" argument is not getting populated.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Script completes successfully and result appears in listenbrainz
Screenshots
Server plattform (please complete the following information):
Client plattform (please complete the following information):
Debug logs (please attach if it can be usefull)
Can attach these if needed.
Configuration (please attach if it can be usefull)
Can attach these if needed
Additional context
I looked at the code a bit, and it seems like the problem was probably caused with this change. It looks like it now ignores the
script_arguments
t_list
, instead passing in&trigger_data->arguments
, which probably doesn't include the vote (or uri). I was trying to understand the code here in order to write up a patch, but it's been a while since I've written a lot of C. Does some merging need to go on between the two lists, or can thescript_arguments
list just be passed in as is (like it was before)?