PDA

View Full Version : CLI for music services



barrygordon
2008-05-12, 11:05
When I perform the CLI command for radios I get back the nice list of internet radios.

Is there a similar CLI command for Music services i.e "musicservices 0 10"

If not, how does one go about building a list of the available music services similar to the one in the web home page when using the CLI interface

Any advice appreciated.

st2000
2008-05-12, 11:48
Hi...

Before I go and try to figure out why something works or doesn't work,
is there still a feature list for various slimserver / squeezecenter
loads? Specifically, was there album cover art work support back in
6.3.0 such that "http://localhost:9000/music/10/cover" would work?

....thanks

barrygordon
2008-05-12, 11:58
st2000

what has your reply got to do with the topic of this thread which is Music Services under CLI?

andyg
2008-05-12, 12:10
The CLI command is music_services.

barrygordon
2008-05-12, 12:11
Thanks Andy. Any documentation yet or treat it the same as radios?

barrygordon
2008-05-12, 12:18
this command seems to have the same issue as the radios command, in that it returns a player ID when none was stateed on the request. Michael has already taken care of the radios issue on bugzilla,

------- Comment #1 From Michael Herger 2008-05-11 13:19:03 [reply] -------
Created an attachment (id=3335) [details]
radios query should not require client

Use $request->string() instead of $client->string()

but I guess he also needs to look at music_services unless that fix handles both cases.

Thanks again

st2000
2008-05-12, 12:30
barrygordon wrote:
> st2000
>
> what has your reply got to do with the topic of this thread which is
> Music Services under CLI?

Did I just hijack a thread?

No, I don't think so (subject line is different).

Is everyone else as confused as I am?

...st2000

(P.S. private mail to thread originator bounced twice - giving up on that.)

andyg
2008-05-12, 12:43
Same as the radios command, and it should be documented in the CLI docs.

mherger
2008-05-12, 13:01
> this command seems to have the same issue as the radios command, in that
> it returns a player ID when none was stateed on the request.

I'm not sure we can do without the client in music_services, as pretty often these are bound to having a client running to connect to SN. Would have to take a second look at it.

> has already taken care of the radios issue on bugzilla,

Well, I've attached a quick patch without any testing, as I'm leaving on a vacation. It's not fixed yet.

> Use $request->string() instead of $client->string()

That's only part of the story. It removes the need of a client for string expansion. But if a service/radion does need a client for authentication or whatever, it won't help. Thus I think you better get your code ready to deal with the client's ID in the answer.

> but I guess he also needs to look at music_services unless that fix
> handles both cases.

It doesn't. I only searched for "radios" when creating that patch.

--

Michael

barrygordon
2008-05-12, 13:45
Michael,

Understood, and I did adjust my code totake care of either case