Keep "Various Aritsts" tag only if it's the only artist in the track

This fixes #21
This commit is contained in:
RemixDev
2020-06-05 19:35:51 +02:00
parent fd148d481c
commit 2552f0787d
2 changed files with 5 additions and 5 deletions

View File

@ -335,7 +335,7 @@ def getTrackData(dz, trackAPI_gw, trackAPI=None, albumAPI_gw=None, albumAPI=None
track['artist'] = {}
track['artists'] = []
for artist in trackAPI['contributors']:
if artist['id'] != 5080:
if artist['id'] != 5080 or artist['id'] == 5080 and len(trackAPI['contributors']) == 1:
track['artists'].append(artist['name'])
if not artist['role'] in track['artist']:
track['artist'][artist['role']] = []