From 8234c5aa0bb505b57398fe222a8f273d919b4336 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 3 Jun 2012 04:00:06 +0200 Subject: [PATCH] Insert artist entries into database --- jamendoparser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jamendoparser.py b/jamendoparser.py index cff3c3c..67a8d74 100644 --- a/jamendoparser.py +++ b/jamendoparser.py @@ -77,6 +77,7 @@ for event, element in iterparse(xml, tag="artist"): mbgid = get_attribute(element, 'mbgid') location = get_attribute(element, 'location') + cursor.execute("INSERT INTO artists VALUES (?, ?, ?, ?, ?, ?)", (artistid, name, url, image, mbgid, location)) print "[%s] %s from %s (image: %s)" % (artistid, name, location, image) for album in element.find('Albums'):