Comments on: Pausing Spotify and playing a random video in Python – A party trick for Halloween https://blog.al4.co.nz/2013/11/python-pausing-spotify-playing-a-random-video/ My hobby... Thu, 30 Mar 2017 09:22:04 +0000 hourly 1 https://wordpress.org/?v=6.9 By: Alex Forbes https://blog.al4.co.nz/2013/11/python-pausing-spotify-playing-a-random-video/#comment-12876 Thu, 30 Mar 2017 09:22:04 +0000 http://blog.al4.co.nz/?p=1570#comment-12876 In reply to chuco61Rick.

Yeah, this code doesn’t really do what you want. This is probably closer: https://community.spotify.com/t5/Desktop-Linux-Windows-Web-Player/Commands-to-play-songs-and-playlists-from-terminal/td-p/802287

Writing a shell (or python) script that selected one at random isn’t too difficult if you have some experience with programming.

]]>
By: chuco61Rick https://blog.al4.co.nz/2013/11/python-pausing-spotify-playing-a-random-video/#comment-12875 Wed, 29 Mar 2017 20:06:27 +0000 http://blog.al4.co.nz/?p=1570#comment-12875 How can this code be tweaked to play a random mp3 from a list of 20 songs after a certain time of being idle or inactivity? This code seems to force stop Spotify after a period of time, however, I need it to be the opposite. Any advice?

]]>