Insert tracks into database

This commit is contained in:
Sven Slootweg 2012-06-03 04:41:27 +02:00
parent ec46d6a67c
commit 9c29068f97

View file

@ -103,6 +103,8 @@ for event, element in iterparse(xml, tag="artist"):
trackgenre = get_attribute(track, 'id3genre')
tracklicense = get_attribute(track, 'license')
cursor.execute("INSERT INTO tracks VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)", (trackid, artistid, albumid, trackname, trackfilename, trackmbgid, tracknumber, trackgenre, tracklicense))
alltags = []
taglist = track.find('Tags')