Skip to content

Instantly share code, notes, and snippets.

@vcsekhar
vcsekhar / playlist.py
Created October 20, 2016 04:06 — forked from Decad/playlist.py
Make a vlc playlist for a directory
from xml.dom.minidom import Document
import os
import sys
validExt = ('.avi') #only add files with these extensions to the playlist
if(len(sys.argv) > 1):
rootdir = sys.argv[1]+'/'
print(sys.argv[1])
else: