Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Jump from playlist to playlist
#3
(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   Huh

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
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Jump from playlist to playlist - by avior - 02-29-2020, 01:54 PM
RE: Jump from playlist to playlist - by avior - 02-29-2020, 05:48 PM
RE: Jump from playlist to playlist - by Tim Curtis - 02-29-2020, 02:58 PM
RE: Jump from playlist to playlist - by avior - 03-01-2020, 12:31 PM

Forum Jump: