")
print("\t\t" + tag.getArtist().encode("UTF8") + " | \n")
print("\t\t" + tag.getAlbum().encode("UTF-8") + " | ")
print("\t\t" + tag.getTitle().encode("UTF-8") + " | ")
comments = tag.getComments()
strComments = ""
for c in comments:
strComments += c.comment
p = re.compile("URL: (.*)\r\nComments: (.*)\r\nCurators?: (.*)\r\nCopyright: (.*)")
m = p.match(strComments)
if m is None:
url = ""
curator = ""
copyright = ""
else:
if m.group(2) == "http://freemusicarchive.org/":
strComments = ""
url = "FMA"
else:
strComments = m.group(2)
url = "source"
curator = m.group(3)
copyright = fma_copyright_to_html(f, m.group(4))
print("\t\t" + url + " | ")
print("\t\t" + curator + " | ")
print("\t\t" + copyright + " | ")
print("\t\t" + strComments + " | ")
print("\t
")
copy_footer(cfg_dir)