Thank you for your donation!


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


Jump from playlist to playlist
#8
(02-29-2020, 06:35 PM)TheOldPresbyope Wrote:
(02-29-2020, 06:16 PM)Tim Curtis Wrote: I don't think that will work. ...
...
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'])

Yeah, my bad twice-over. I was thinking only of the command line. 

What you suggest at the end of your post is exactly what is in the code in my guide (so is the use of vol.sh)

I'm having a bad day wrestling a real-world problem. I should just ignore this distracting computer for a while Blush

Regards,
Kent

thank you for reply this what i got

pi@moode:~ $ 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'])
loading: Default Playlist
0
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

Forum Jump: