Discussion:
[SlimDevices: Plugins] Queuing spotify tracks/playlists via LMS CLI (Triode plugin)
whymse
2014-12-04 04:47:58 UTC
Permalink
Hi all,

I would like to be able to programatically play albums or (ideally)
spotify playlists via the CLI on my players.

If I navigate the LMS webpage and select the "Spotify app" (triode
plugin) then I can see via more info that an album has a URL like: "URL:
spotify:album:7jfkffCqKYEJmIgGOIJ9me"
If I try something like
Code:
--------------------
e8:4e:06:0b:75:a6 playlistcontrol cmd:add spotify:album:7jfkffCqKYEJmIgGOIJ9me
--------------------
then it just hangs.
I can do
Code:
--------------------
e8:4e:06:0b:75:a6 playlistcontrol cmd:add genre_id:9 count:33
--------------------
from some online examples, so I know my CLI is working and I can add to
playlists.

I would love to be able to leverage the CLI to play different defined
playlists via pylms calls, but I just can't figure out how to enqueue
the spotify assets from triode.

Thanks very much in advance!


------------------------------------------------------------------------
whymse's Profile: http://forums.slimdevices.com/member.php?userid=63673
View this thread: http://forums.slimdevices.com/showthread.php?t=102638
Michael Herger
2014-12-04 07:04:05 UTC
Permalink
Post by whymse
e8:4e:06:0b:75:a6 playlistcontrol cmd:add spotify:album:7jfkffCqKYEJmIgGOIJ9me
The documentation says:

"The "playlistcontrol" command enables playlist operations using IDs as
returned by extended CLI queries (titles, artists, playlists, etc).".

Use "playlist add" instead:

"The "playlist add" command adds the specified song URL, playlist or
directory contents to the end of the current playlist. Songs currently
playing or already on the playlist are not affected."

You should be able to add the kind of url you mentioned.
--
Michael
whymse
2014-12-08 05:00:26 UTC
Permalink
That worked perfectly. Thanks for the suggestion!


------------------------------------------------------------------------
whymse's Profile: http://forums.slimdevices.com/member.php?userid=63673
View this thread: http://forums.slimdevices.com/showthread.php?t=102638
TH3ndr1
2016-12-14 14:48:36 UTC
Permalink
Thanks for the above instructions, it helped me as well.

FYI - I noted that if you want to refer to a personal spotify playlist,
you need to include the Spotify userID in the URL-string.

Example where XXXXx is userID and YYYYY is playlist ID:


Code:
--------------------
cc:cc:c7:09:fe:56 playlist play spotify:user:XXXXX:playlist:YYYYY
--------------------


The above CLI command will load and play the playlist directly.


------------------------------------------------------------------------
TH3ndr1's Profile: http://forums.slimdevices.com/member.php?userid=66372
View this thread: http://forums.slimdevices.com/showthread.php?t=102638
Loading...