X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=mp3tohtml.py;h=0dcfaf79b39e375fa60d09733adbee1e9f7c0b7b;hb=b1a94bbe13dae39b5e81226aa8823fd9d66224bb;hp=d2e452900a5716295ed089fa30e129dba268ea59;hpb=29f33cb3d47103711ef77842932663ee040260b7;p=radio.git diff --git a/mp3tohtml.py b/mp3tohtml.py index d2e4529..0dcfaf7 100755 --- a/mp3tohtml.py +++ b/mp3tohtml.py @@ -1,5 +1,7 @@ #!/usr/bin/python +# mp3tohtml.py + import glob import sys import eyeD3 @@ -9,10 +11,22 @@ if len(sys.argv) != 2: files = glob.glob(sys.argv[1] + "/**/*mp3") -print "List of songs" +print "" +print "" +print "List of songs" + +print " " +print "" +print " " +print "" +print "" + print "

List of songs

" -print "" +print "
" +print "" for f in files: tag = eyeD3.Tag() @@ -21,7 +35,7 @@ for f in files: print "\t" try: - artist = tag.getArtist().decode('utf-8') + artist = tag.getArtist() print "\t\t" except UnicodeEncodeError: print "\t\t"
ArtistAlbumTitleComments
" + artist + "