From 43efca9d0494df49ee4104aa100c1ffd6238fb54 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Sun, 14 Sep 2014 22:58:19 +0200 Subject: [PATCH] Code improvements. --- headphones/importer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/headphones/importer.py b/headphones/importer.py index 3954366e..79d52c1d 100644 --- a/headphones/importer.py +++ b/headphones/importer.py @@ -190,10 +190,12 @@ def addArtisttoDB(artistid, extrasonly=False, forcefull=False): except IndexError: includeExtras = False - #Clean all references to release group in dB that are no longer referenced from the musicbrainz refresh + # Clean all references to release group in dB that are no longer referenced + # from the musicbrainz refresh group_list = [] force_repackage = 0 - #Don't nuke the database if there's a MusicBrainz error + + # Don't nuke the database if there's a MusicBrainz error if len(artist['releasegroups']) != 0: for groups in artist['releasegroups']: group_list.append(groups['id'])