Code improvements.

This commit is contained in:
Bas Stottelaar
2014-09-14 22:58:19 +02:00
parent 34b9480a1b
commit 43efca9d04

View File

@@ -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'])