2014-05-21, 04:01
I'm trying to update my webinterface addon for Gotham. I'm having a lot of trouble with SetSongDetails and the genre. It seems that with Frodo, genres were passed around as arrays of strings. Now they seem to be numeric IDs, although I'm not sure how you would introduce a new genre unless you can pass a string.
I'm trying to pass my genre value as an array of strings. I get an OK result from the JSON-RPC server, but the genre value doesn't change; when I use GetSongDetails on the same song later, I get the original genre.
Below are the parameters I'm passing to SetSongDetails. Any ideas why this is failing?
I've scoured the web for other examples of calls to SetSongDetails; I must be one of the very few devs using it.
I'm trying to pass my genre value as an array of strings. I get an OK result from the JSON-RPC server, but the genre value doesn't change; when I use GetSongDetails on the same song later, I get the original genre.
Below are the parameters I'm passing to SetSongDetails. Any ideas why this is failing?
I've scoured the web for other examples of calls to SetSongDetails; I must be one of the very few devs using it.
Code:
{
id: 11
jsonrpc: "2.0"
method: "AudioLibrary.SetSongDetails"
params: [32584, California Love, [2Pac], [2Pac], [Hip-Hop], null, 0, , null, null, null, ]
0: 32584
1: "California Love"
2: [2Pac]
0: "2Pac"
3: [2Pac]
0: "2Pac"
4: [Hip-Hop]
0: "Hip-Hop"
5: null
6: 0
7: ""
8: null
9: null
10: null
11: ""
}