Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Mar 2011
    Posts
    22

    Any information/examples how to search online services with JSON RPC

    The information about the JSON RPC is a bit limited, although there are similarities with CLI.

    Is there any info/examples related to search queries. E.g. how to find album on local server and how to find album on online service ?

    Thanks in advance,

  2. #2
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    1,013
    Quote Originally Posted by prutser View Post
    The information about the JSON RPC is a bit limited, although there are similarities with CLI.
    Is there any info/examples related to search queries. E.g. how to find album on local server and how to find album on online service ?
    You send the exact CLI command + tagged params:
    Code:
    curl -H "Content-Type: application/json" -X POST -d '{"id":1,"method":"slim.request","params":["-", ["albums", 0, 999,"search:TermToSearch"]]}' -o - "http://lmsserver:9000/jsonrpc.js"
    Various SW: Web Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

  3. #3
    Junior Member
    Join Date
    Mar 2011
    Posts
    22
    Quote Originally Posted by Roland0 View Post
    You send the exact CLI command + tagged params:
    Code:
    curl -H "Content-Type: application/json" -X POST -d '{"id":1,"method":"slim.request","params":["-", ["albums", 0, 999,"search:TermToSearch"]]}' -o - "http://lmsserver:9000/jsonrpc.js"
    Thanks for your reply. In this case I would search in the local collection, how would this apply to a remote service, such as Tidal ?

  4. #4
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    1,013
    Quote Originally Posted by prutser View Post
    Thanks for your reply. In this case I would search in the local collection, how would this apply to a remote service, such as Tidal ?
    No idea about Tidal, but in general see the "Plugins commands and queries" section in the CLI docs
    e.g. for bandcamp: ['bandcamp', 'items', 'search:whatever']
    Various SW: Web Interface | Playlist Editor / Generator | Music Classification | Similar Music | Announce | EventTrigger | LMSlib2go | ...
    Various HowTos: build a self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •