From 0452ece43f230822ff60e66c90de225699ec3d71 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 3 Jun 2012 04:43:49 +0200 Subject: [PATCH] Show status line at end of artist insertion --- jamendoparser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()