Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 9342

JSONRPC queries

$
0
0
I’m developing a material style skin for LMS (using vue.js and vuetify.js). It’s not yet ready for serious use – as it has a few missing details such as sync and editing of the play queue (had a working version, but mobile browsers don’t support HTML5 drag’n’drop).

For the music browsing side, I have most things working – at least what I mainly use; artists, genres, radios, apps, etc. However a few things have me stumped.

1. How do I add an Artist, Album, or Genre to favourites? I thought [“favorites”, “add”, “artist_id:XXXX”, “title:ArtistName”] would work – but it does not. If I use the current web UI to add an artist as a favourite, then list this via ["favorites","items", 0,20, "want_url:1"] it returns {"id":"3","name":"Artist Name","type":"playlist","isaudio":1,"hasitems":1} And the web UI can navigate into this. How does this work?

2. How do I get a TuneIn, Artist, or Album image for a favorite?

3. I’d like to add configuring of the “Don’t stop the music” plugin – as this is one I use a lot. How do I get a list of the installed plugins? I can see the JSONRPC call to get a plugins config, and change it. But how can I check if a plugin is installed? For the DSTM plugin, how can I get a list of of its options (e.g. LastMix, etc) ?

Thanks for any help.

If anyone is interested, the code and current screenshots are at: https://github.com/CDrummond/lms-material

Viewing all articles
Browse latest Browse all 9342

Trending Articles