summaryrefslogtreecommitdiff
path: root/liveengine/bin/data/makeplaylist.py
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-08-08 22:09:59 +0100
committerComment <tim@gray.(none)>2013-08-08 22:09:59 +0100
commite632e908a973a87c82e061f36167ea162d1e390f (patch)
tree4b08aad9b18c7aff721806b6f6fb0a8e4799a59f /liveengine/bin/data/makeplaylist.py
parent3bf0663e94b6335cb748a50a8b95e8a98d2a0630 (diff)
a few playlist changes + whole screen fade
Diffstat (limited to 'liveengine/bin/data/makeplaylist.py')
-rwxr-xr-xliveengine/bin/data/makeplaylist.py34
1 files changed, 0 insertions, 34 deletions
diff --git a/liveengine/bin/data/makeplaylist.py b/liveengine/bin/data/makeplaylist.py
deleted file mode 100755
index 2376f3d..0000000
--- a/liveengine/bin/data/makeplaylist.py
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/python
-
-from lxml import etree
-import sys,os,random
-
-if len(sys.argv)<2:
- print "usage: makeplaylist source_directory playlist_name"
- sys.exit(0)
-
-sourcedir=sys.argv[1]
-playlistname=sys.argv[1]
-
-if len(sys.argv)>2:
- playlistname=sys.argv[2]
-
-page = etree.Element('playlist',name=playlistname)
-doc = etree.ElementTree(page)
-
-dirList=sorted(os.listdir(sourcedir))
-nums=range(64)
-random.shuffle(nums)
-note = 0
-while note<64:
- for fname in dirList:
- pageElement = etree.SubElement(page, 'svglayer',
- note=str(nums[note]+36),
- file=sourcedir+"/"+fname)
- note +=1
- if note>63:
- break
-
-file= open(sourcedir+".xml", "w")
-doc.write(file, xml_declaration=True, encoding='utf-8',pretty_print=True)
-file.close() \ No newline at end of file