03-01-2020, 01:49 PM
(This post was last modified: 03-01-2020, 01:53 PM by TheOldPresbyope.)
@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"
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
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