Hey that's a great project.:D

In case you haven't found it yet, you will find the LMS CLI
documentation on your LMS computer. It is under the help button (bottom
right corner) or use this URL.

http://localhost:9000/html/docs/cli-api.html

Here's how we do it in piCorePlayer, shell script, not python.


Code:
--------------------
    (echo "$PLAYER_MAC favorites playlist play item_id:$(pcp_autofav_id)"; echo 
"exit") | nc $(pcp_lmsip) 9090 >> ${LOGDIR}/pcp_auto_start_fav.log
--------------------


Here's a snippet from player.py


Code:
--------------------
        def playlist_play(self, item):
  """Play Item Immediately"""
  item = self.__quote(item)
  self.request("playlist play %s" % (item))
  
--------------------


This is what I would try, it might work?? Add this...


Code:
--------------------
        def favorites_playlist_play(self, item):
  """Play Favorites Item Immediately"""
  item = self.__quote(item)
  self.request("favorites playlist play %s" % (item))
  
--------------------


regards
Greg


------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=106605

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

Reply via email to