10 files = glob.glob(sys.argv[1] + "/**/*mp3")
14 print "<title>List of songs</title>"
16 print " <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css\">"
17 print "<script type=\"text/javascript\" language=\"javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js\">"
19 print " <script type=\"text/javascript\" language=\"javascript\" src=\"https://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js\">"
21 print "<script>$(document).ready(function() { $('#songs').DataTable(); } );</script>"
24 print "<body><h1>List of songs</h1>"
26 print "<table id='songs' class='display compact' width='100%'>"
27 print "<thead><tr><th>Artist</th><th>Album</th><th>Title</th><th>Comments</th></tr></thead>"
36 artist = tag.getArtist()
37 print "\t\t<td>" + artist + "</td>"
38 except UnicodeEncodeError:
42 print "\t\t<td>" + tag.getAlbum() + "</td>"
43 except UnicodeEncodeError:
47 print "\t\t<td>" + tag.getTitle() + "</td>"
48 except UnicodeEncodeError:
52 comments = tag.getComments()
54 print comments[0].comment
61 print "</body></html>"