PDA

View Full Version : newbie ?: syntax for file in playlist play web ui



jperkins
2009-05-10, 22:05
Howdy,

I'm looking for syntax help in running the Playlist Play command from the web interface. I can get Play and Stop to work, but when I try Playlist Play, I get Current Playlist Empty returned as status.

My syntax is:

"h??p://207.47.105.100:9000/status.html?p0=playlist&p1=play&p2=file://musictest/latino.m3u;cauth=4caae7fa25dfa58abd5996add80bc061# currentsong"

Note: I have no entries in the Squeezecenter database. I access all of my music using the Browse Folders option, and select m3u files directly from my Windows file system.

Any help or references is appreciated!

Phil Leigh
2009-05-10, 22:10
Howdy,

Note: I have no entries in the Squeezecenter database. I access all of my music using the Browse Folders option, and select m3u files directly from my Windows file system.



Every time you use "browse folders" to select tracks, they are added to the SC database if not already there...

jperkins
2009-05-11, 14:00
Thanks Phil. Yes, I do see some playlist entries in the db. I was curious how they got there, as I never run a scan.

That said, I don't intend to use the db to select my playlists, anyway. I have my own web interface that lits all of my playlists and songs, and I want to select a playlist from my interface, and have my Squeezebox play it. Hence, my interest in the Playlist Play function of the Squeezecenter Web Interface.

So I'm still having the problem with the format of the File parameter (p2) with the Web interface CLI for Playlist Play. I still get "Empty" as the return value. Clearly, I'm doing something wrong, and I haven't found a good reference document for how to format this parameter. A couple of questions:

- Does the playlist have to be in the db for the Playlist Play CLI to work?
- Can the Path of the playlist be explicit? or is it referntial from the Squeezecenter default Music Folder?
- Can normal spaces and punctuation be used in the File p2 parameter? or are % key escape values required for spaces and punctuation?
- anything else wrong in the syntax that I had as an example in my original post?

Thanks for any help!!!