|
|
@ -104,8 +104,6 @@ for event, element in iterparse(xml, tag="artist"):
|
|
|
|
trackgenre = get_attribute(track, 'id3genre')
|
|
|
|
trackgenre = get_attribute(track, 'id3genre')
|
|
|
|
tracklicense = get_attribute(track, 'license')
|
|
|
|
tracklicense = get_attribute(track, 'license')
|
|
|
|
|
|
|
|
|
|
|
|
print " [%3d] %s (ID: %s)" % (int(tracknumber), trackname, trackid)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
alltags = []
|
|
|
|
alltags = []
|
|
|
|
taglist = track.find('Tags')
|
|
|
|
taglist = track.find('Tags')
|
|
|
|
|
|
|
|
|
|
|
@ -116,9 +114,4 @@ for event, element in iterparse(xml, tag="artist"):
|
|
|
|
tagweight = get_attribute(tag, 'weight')
|
|
|
|
tagweight = get_attribute(tag, 'weight')
|
|
|
|
alltags.append("%s (weight %s)" % (tagid, tagweight))
|
|
|
|
alltags.append("%s (weight %s)" % (tagid, tagweight))
|
|
|
|
|
|
|
|
|
|
|
|
print " %s" % ' '.join(alltags)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
print " No tags."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print ""
|
|
|
|
|
|
|
|
element.clear()
|
|
|
|
element.clear()
|
|
|
|