02-29-2020, 02:58 PM
(This post was last modified: 02-29-2020, 03:01 PM by Tim Curtis.
Edit Reason: eta
)
(02-29-2020, 01:54 PM)avior Wrote: Can someone please tell if is possible to move from playlist to playlist ? is there a cmd command or am i missing something ?
at the moment i am trying to use this command on momentary switches
mpc toggle this works
mpc next this works
mpc prev this works
/var/www/vol.sh up 10 this works
/var/www/vol.sh dn 10 this works
sudo poweroff this works
mpc load playlist1 dont work
mpc load playlist2 dont work
any idea what am doing wrong
i am using version 6.4.2
Thank You LATEST RELEASE IS 6.4.2 LATEST RELEASE IS 6.4.2
U are using the GPIO button handler correct?
If the playlist name has embedded spaces it will not be parsed correctly because the code is splitting the CMD string using space as the delimiter. For example.
Code:
>>>
>>> str = 'mpc load My Playlist'
>>> strList = str.split(' ')
>>> print strList
['mpc', 'load', 'My', 'Playlist']
>>>
For the upcoming r650 release I should probably change to a specific delimiter for CMD. Something like comma perhaps.
In the meantime use underscore instead of space. For example My_Playlist
-Tim