Skip to content

Instantly share code, notes, and snippets.

@whoeverest
Created October 5, 2012 14:47
Show Gist options
  • Save whoeverest/3840226 to your computer and use it in GitHub Desktop.
Save whoeverest/3840226 to your computer and use it in GitHub Desktop.
import os
def songs_from_playlist(path):
return open(playlist).readlines()
songs_folder = "/home/whoeverest"
playlist = "/home/whoeverest/lista.m3u"
songs = songs_from_playlist(playlist)
for f in os.path.listdir(songs_folder):
if not f in songs:
print f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment