Thank you for your donation!


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


Jump from playlist to playlist
#9
@avior

Ok, that test returned 0 which means it was successful. You should have seen the tracks in the Default Playlist appear on the playback screen.

It's been difficult to determine how you are going wrong because you reference Remy's Python script for momentary switches but you keep showing us command line syntax instead of your code in your posts.

In Remy's script, switch "pl2" is programmed to load his example playlist named "MUSIC_STREAM"

Code:
...
    elif pl2_switch == False:
       subprocess.call(['mpc','clear' ])
       subprocess.call(['mpc','load','MUSIC_STREAM' ])
...


If you change that 'MUSIC_STREAM' to 'Default Playlist' you should get the behavior you want for switch "pl2". Obviously this can be done for the switch of choice.

Note that Remy was a bit overcautious with his admonition to "Make sure no spaces on playlists names."

Regards,
Kent
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 avior - 03-01-2020, 12:31 PM
RE: Jump from playlist to playlist - by TheOldPresbyope - 03-01-2020, 01:49 PM

Forum Jump: