No need for JSON.

>From WebUI Help / technical Information / The Logitech server command
line interface

Status command shoud giev the info


Code:
--------------------
    
  <playerid> status <start> <itemsPerResponse> <taggedParameters>
  
  The "status" query returns the complete status about a given player, 
including the current playlist. Set the <start> parameter to "-" to get the 
playlist data starting from the current song.
  In this "curent" mode and if repeat is on, the server will attempt to return 
<itemsPerResponse> elements, by repeating the playlist at most once, unless 
shuffling is on and the server is configured to re-shuffle the playlist at each 
loop (in which case it is impossible to predict the song following the last one 
in the playlist until this last song has finished playing).
  Similarly, in the "curent" mode, if repeat is one, only the current song is 
returned, regardless of the value of <itemsPerResponse>.
  Clients can subscribe to "status" queries, so that the query results are 
automatically returned asynchronously whenever a change occurs to a player. 
Please note this mechanism is completely distinct from the "listen" and 
"subscribe" commands described elsewhere in this document.
  
  Accepted tagged parameters:
  Tag   Description
  tags  Determines which tags are returned. Each returned tag is identified by 
a letter (see command "songinfo" for a list of possible fields and their 
identifying letter). The default tags value for this query is "gald". In 
addition to the tags supported by "songinfo" there's the special "DD" tag, 
which would return no track information, but the total duration of the current 
playlist only.
  subscribe     This optional parameter controls the subscription to the player 
status. Only one status subscription is possible per player and connection.
  Subscription is enabled by using this parameter with a positive integer. It 
is disabled by using "-". When the subscription is enabled, normal "status" 
queries (i.e. not using the "subscribe" parameter) can be performed and will 
have no effect on the subscription in place.
  When enabled, the "status" request is automatically re-generated on player 
change (and sent asynchronously to the CLI client). The number indicates the 
time interval in seconds between automatic generations in case nothing happened 
to the player in the interval. Use "0" to disable this last feature and only be 
notified on player or playlist changes. .
  .
  .
  .Example:
  
  Simple example
  Request: "a5:41:d2:cd:cd:05 status 0 2 tags:<LF>"
  Response: "a5:41:d2:cd:cd:05 status 0 2 tags: player_name:127.0.0.1 
player_connected:1 power:1 mode:play rate:1 time:13.7129358076728 
duration:252.630204081633 mixer%20volume:50 mixer%20treble:50 mixer%20bass:50 
mixer%20pitch:100 playlist%20repeat:2 playlist%20shuffle:0 playlist_cur_index:1 
playlist_tracks:3 playlist%20index:0 title:Left%20Outside%20Alone 
playlist%20index:1 title:Bounce%20[Original%20Version]<LF>"
  
  Current mode example
  Request: "a5:41:d2:cd:cd:05 status - 2 tags:<LF>"
  Response: "a5:41:d2:cd:cd:05 status - 2 tags: player_name:127.0.0.1 
player_connected:1 power:1 mode:play rate:1 time:18.721127818274 
duration:252.630204081633 mixer%20volume:50 mixer%20treble:50 mixer%20bass:50 
mixer%20pitch:100 playlist%20repeat:2 playlist%20shuffle:0 playlist_cur_index:1 
playlist_tracks:3 playlist%20index:1 title:Bounce%20[Original%20Version] 
playlist%20index:2 title:Open%20Up%20[Radio%20Edit]<LF>"
  
  Subscribe mode example
  Request: "a5:41:d2:cd:cd:05 status - 2 subscribe:30<LF>"
  Response: "a5:41:d2:cd:cd:05 status - 2 subscribe:30 player_name:127.0.0.1 
... (same as above)
  
  10 seconds later, player is turned off, CLI generates and sends:
  "a5:41:d2:cd:cd:05 status - 2 subscribe:30 player_name:127.0.0.1 
player_connected:1 power:0<LF>"
  
  30 seconds (the subscribe value) elapse, no changes to the player, the CLI 
generates and sends:
  "a5:41:d2:cd:cd:05 status - 2 subscribe:30 player_name:127.0.0.1 
player_connected:1 power:0<LF>"
  
--------------------


songinfo tags

Code:
--------------------
    
        Tag     Description
        rescan  Returned with value 1 if the server is still scanning the 
database. The results may therefore be incomplete. Not returned if no scan is 
in progress.
        count   Number of results returned by the query, that is, total number 
of elements to return for this song.
        id      Track ID.
        title   Song title
  a     artist  Artist name.
  A     <role>  For every artist role (one of "artist", "composer", 
"conductor", "band", "albumartist" or "trackartist"), a comma separated list of 
names.
  B     buttons         A hash with button definitions. Only available for 
certain plugins such as Pandora.
  c     coverid         coverid to use when constructing an artwork URL, such 
as /music/$coverid/cover.jpg
  C     compilation     1 if the album this track belongs to is a compilation
  d     duration        Song duration in seconds.
  e     album_id        Album ID. Only if known.
  f     filesize        Song file length in bytes. Only if known.
  g     genre   Genre name. Only if known.
  G     genres  Genre names, separated by commas (only useful if the server is 
set to handle multiple items in tags).
  i     disc    Disc number. Only if known.
  I     samplesize      Song sample size (in bits)
  j     coverart        1 if coverart is available for this song. Not listed 
otherwise.
  J     artwork_track_id        Identifier of the album track used by the 
server to display the album's artwork. Not listed if artwork is not available 
for this album.
  k     comment         Song comments, if any.
  K     artwork_url     A full URL to remote artwork. Only available for 
certain online music services.
  l     album   Album name. Only if known.
  L     info_link       A custom link to use for trackinfo. Only available for 
certain online music services.
  m     bpm     Beats per minute. Only if known.
  M     musicmagic_mixable      1 if track is mixable, otherwise 0.
  n     modificationTime        Date and time song file was last changed on 
disk.
  N     remote_title    Title of the internet radio station.
  o     type    Content type. Only if known.
  p     genre_id        Genre ID. Only if known.
  P     genre_ids       Genre IDs, separated by commas (only useful if the 
server is set to handle multiple items in tags).
  D     addedTime       Date and time song file was first added to the database.
  U     lastUpdated     Date and time song file was last updated in the 
database.
  q     disccount       Number of discs. Only if known.
  r     bitrate         Song bitrate. Only if known.
  R     rating  Song rating, if known and greater than 0.
  O     playcount       Song play count.
  s     artist_id       Artist ID.
  S     <role>_ids      For each role as defined above, the list of ids.
  t     tracknum        Track number. Only if known.
  T     samplerate      Song sample rate (in KHz)
  u     url     Song file url.
  v     tagversion      Version of tag information in song file. Only if known.
  w     lyrics  Lyrics. Only if known.
  x     remote  If 1, this is a remote track.
  E     extid   Some tracks have an external identifier (eg. from an online 
music service).
  X     album_replay_gain       Replay gain of the album (in dB), if any
  y     year    Song year. Only if known.
  Y     replay_gain     Replay gain (in dB), if any 
  
--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=113499

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

Reply via email to