Thank you for your donation!


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


Jump from playlist to playlist
#6
I don't think that will work. You prolly end up with below after string.split(' ')

Code:
['mpc', 'load', '"My', 'Playlist"']

OP could try the following to see if an error occurs

Code:
pi@rp3:~ $ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import subprocess
>>> subprocess.call(['mpc', 'load', 'Default Playlist'])
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, 06:16 PM
RE: Jump from playlist to playlist - by avior - 03-01-2020, 12:31 PM

Forum Jump: