diff --git a/jamendoparser.py b/jamendoparser.py index 4365b9e..d8de17d 100644 --- a/jamendoparser.py +++ b/jamendoparser.py @@ -79,7 +79,6 @@ for event, element in iterparse(xml, tag="artist"): 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'): # id, name, url, releasedate, filename, mbgid, license_artwork, Tracks @@ -114,4 +113,6 @@ for event, element in iterparse(xml, tag="artist"): tagweight = get_attribute(tag, 'weight') cursor.execute("INSERT INTO tags VALUES (?, ?, ?)", (trackid, tagid, tagweight)) + print "Inserted %s into database" % (name,) + element.clear()