Quoting Geoff B <[EMAIL PROTECTED]>:

> Hi all,
>
> [I posted this to the developers forum, but perhaps this is a more
> appropriate place?]
>
> I'm trying to retrieve information about the currently-playing track,
> using the CLI. I can get artist, genre, etc with no problems - but as
> soon as I try to get the track title, it gives me the fully-formatted
> line including track number, artist, etc.
>
> I've tried the following CLI command:
> aa:bb:cc:dd:ee:ff title ?
> (where aa:bb:cc:dd:ee:ff is my player's MAC address)
>
> I get back:
> aa:bb:cc:dd:ee:ff title 10. Deed I Do - Diana Krall - All For You
>
> What I really want back is:
> aa:bb:cc:dd:ee:ff title All For You
>
> I really don't want to pick apart the response string to pull the
> title out, since the format could change, and some artists and some
> track names include hyphens in their names (so there's no reliable
> delimiter for the track name).
>
> I'm sure this is simple - can anyone tell me the sequence of CLI
> commands to do this?  Or point me in the direction of some useful
> documentation?
>
This looks like a case of standardTitle. The title returned is likely matching
your chosen titleformat in server settings, or possibly player settings
depnding on how directly the title command adheres to they player id reference.
 Change the format to 'TITLE' and you should get the simple response.

-kdf
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to