Python script to randomise an m3u playlist

While I’m blogging scripts for playlist manipulation here is one I use in a nightly cron job to shuffle our playlists so that various devices playing from them have some daily variety. All disclaimers apply, it’s rough and ready but WorksForMe (TM). I have an entry in my crontab like this 0 4 * *… Continue reading Python script to randomise an m3u playlist

  • 3
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Python script to add a file to a playlist

I have a number of playlists on Gondolin, which is a headless machine. I wanted to be able to easily add a given mp3 file to the playlists which are in m3u format. That means that each entry has both the filename and an extended line with some basic metadata, in particular the track length… Continue reading Python script to add a file to a playlist

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •