X-Git-Url: http://git.wpitchoune.net/gitweb/?p=radio.git;a=blobdiff_plain;f=mp3tohtml.py;fp=mp3tohtml.py;h=9cdfab5b57c7e36018b66ac9db77986c134cb4a3;hp=7a030ac9fee4601209043885d74c88b07f05bf11;hb=91af8264b9e86ac548e9f562ce7a4cbc6c2f5c49;hpb=079ac950630d42c5ad523c55c161fe476d11bea2 diff --git a/mp3tohtml.py b/mp3tohtml.py index 7a030ac..9cdfab5 100755 --- a/mp3tohtml.py +++ b/mp3tohtml.py @@ -13,28 +13,18 @@ import glob import sys import eyeD3 +import os.path if len(sys.argv) != 2: exit(1) -files = glob.glob(sys.argv[1] + "/**/*mp3") - -print "" -print "" -print "All songs" +header_path = os.path.dirname(sys.argv[0]) + "/header.tpl" +header = open(header_path, "r") +for line in header: + sys.stdout.write(line) -print " " -print "" -print " " -print "" -print "" - -print "

List of songs

" +files = glob.glob(sys.argv[1] + "/**/*mp3") -print "" -print "" for f in files: tag = eyeD3.Tag()
ArtistAlbumTitleComments