Insert tracks into database
This commit is contained in:
parent
ec46d6a67c
commit
9c29068f97
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue