PDA

View Full Version : CLI playlist play question



sarcasticboy
2007-01-13, 18:26
I am using a telnet client to talk to the server via CLI interface - very cool stuff. Can someone point me to the best way to actually play a song? Couple of things I have discovered:

I can use the following format:
<playerid> playlist play /music/artist/album/song.flac

provided the path has no spaces.. seems that spaces require coversion to %20 as in
<playerid> playlist play /music/artist/album/A%20Song%20Title.flac

so, question 1 - is there an easier way? embedding double or single quotes had no effect..

I noted that the webUI uses a loadTracks param which I tried over the CLI interface.. it works, but the results are completely nuts (which is perhaps why it is not documented).. question - is there a way to play a song via track_id rather than the path? This would be so much nicer if one is using the server database to get albums and tracks and their associated ids..

thanks for any thoughts -

david

chrisla
2007-01-13, 21:21
> I noted that the webUI uses a loadTracks param which I tried over the
> CLI interface.. it works, but the results are completely nuts (which is
> perhaps why it is not documented).. question - is there a way to play a
> song via track_id rather than the path? This would be so much nicer if
> one is using the server database to get albums and tracks and their
> associated ids..
>

MAC playlistcontrol cmd:load artist_id:ARTISTSID album_id:ALBUMID

You would do the same thing substituting track_id for album_id.

Checkout this thread, I ended up doing many of the things you are
asking about in my project, so it may be a good source of examples and
formatting:

http://forums.slimdevices.com/showthread.php?t=29630

-Chris

mherger
2007-01-14, 00:42
> provided the path has no spaces.. seems that spaces require coversion
> to %20 as in
> <playerid> playlist play /music/artist/album/A%20Song%20Title.flac

That's no hidden secret, but specified in the documentation's third
paragraph: "the server expects parameters to be encoded using
percent-style escaping".

--

Michael

-----------------------------------------------------------------
http://www.herger.net/SlimCD - your SlimServer on a CD
http://www.herger.net/slim - AlbumReview, Biography, MusicInfoSCR