I am running LMS 7.8.1 - 1452060482 and am having a problem getting the
CLI command favourites exists to work as I expect.

When I use the command favorites items 0 20 I get a response from the
server similar to
Code:
--------------------
    
  favorites items 0 20 title:Favorites 
  id:aa21b3ad.0 name:On mysqueezebox.com isaudio:0 hasitems:1 
  id:aa21b3ad.1 name:Song1 type:audio isaudio:1 hasitems:0 
  id:aa21b3ad.2 name:Song2 type:audio isaudio:1 hasitems:0 
  id:aa21b3ad.3 name:Folder ONE isaudio:0 hasitems:1 
  id:aa21b3ad.4 name:Song3 type:audio isaudio:1 hasitems:0 
  id:aa21b3ad.5 name:Playlist ONE type:playlist isaudio:1 hasitems:1 
  id:aa21b3ad.6 name:Playlist TWO type:playlist isaudio:1 hasitems:1 
  id:aa21b3ad.7 name:Song4 type:audio isaudio:1 hasitems:0 
  id:aa21b3ad.8 name:Song5 type:audio isaudio:1 hasitems:0 
  id:aa21b3ad.9 name:Song6 type:audio isaudio:1 hasitems:0 
  id:aa21b3ad.10 name:Song7 type:audio isaudio:1 hasitems:0 
  id:aa21b3ad.11 name:Folder TWO isaudio:0 hasitems:1 
  count:12
--------------------

If I then use the command favorites exists 5 (i.e. trying to check if id
5 exists), I get the response:
Code:
--------------------
    favorites exists 5 exists:0
--------------------

This says id 5 doesn't exist when the previous command shows that it
does :confused:

I also note that the IDs that are previously returned have aa21b3ad.
prefixed on them. Every time I issue the  favorites items 0 20 this
prefix is returned with a different value.

Basically what I am trying to do is check that the favorite exists
before trying to play it.

Am I using the correct format of the favorites exists command?

Thanks for any help / suggestions :)


------------------------------------------------------------------------
logrunner's Profile: http://forums.slimdevices.com/member.php?userid=65053
View this thread: http://forums.slimdevices.com/showthread.php?t=105041

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

Reply via email to