From 577ceda8aa477b91e404aaad4eee103bb95690b0 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 3 Jun 2012 04:41:58 +0200 Subject: [PATCH] Include Artist ID in Album insertion query --- jamendoparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jamendoparser.py b/jamendoparser.py index ea74c6c..0baa021 100644 --- a/jamendoparser.py +++ b/jamendoparser.py @@ -91,7 +91,7 @@ for event, element in iterparse(xml, tag="artist"): albummbgid = get_attribute(album, 'mbgid') albumartworklicense = get_attribute(album, 'license_artwork') - cursor.execute("INSERT INTO albums VALUES (?, ?, ?, ?, ?, ?, ?, ?)", (albumid, albumname, albumurl, albumrelease, albumfilename, albummbgid, albumartworklicense)) + cursor.execute("INSERT INTO albums VALUES (?, ?, ?, ?, ?, ?, ?, ?)", (albumid, artistid, albumname, albumurl, albumrelease, albumfilename, albummbgid, albumartworklicense)) for track in album.find('Tracks'): # id, name, filename, mbgid, numalbum, id3genre, license, Tags