Created
October 5, 2012 14:47
-
-
Save whoeverest/3840226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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