TracklistController.filter

I’m struggling with the method TracklistController.filter, finding a way to compose a curl call.

I tried with:

curl -d '{"jsonrpc": "2.0","id": 1,"method": "core.tracklist.filter","params":{"uri":["http://prem2.radiotunes.com:80/cafedeparis?0ebfb44a7f3280cf3a2591fd"]}}' -H 'Content-Type: application/json' http://localhost:6680/mopidy/rpc

but I got: TypeError: filter() got an unexpected keyword argument 'uri'

Never mind. I got it:

curl -d '{"jsonrpc": "2.0","id": 1,"method": "core.tracklist.filter","params":{"criteria":{"uri":["http://prem2.radiotunes.com:80/cafedeparis?0ebfb44a7f3280cf3a2591fd"]}}}' -H 'Content-Type: application/json' http://localhost:6680/mopidy/rpc

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.