Added better workaround for #2
This commit is contained in:
parent
f3b36b3ea3
commit
ec38923701
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
__version__ = "1.1.17"
|
||||
__version__ = "1.1.19"
|
||||
|
|
|
@ -288,10 +288,11 @@ def getTrackData(dz, trackAPI_gw, settings, trackAPI=None, albumAPI_gw=None, alb
|
|||
track['album']['artists'] = []
|
||||
for artist in albumAPI['contributors']:
|
||||
if artist['id'] != 5080 or artist['id'] == 5080 and settings['albumVariousArtists']:
|
||||
if artist['name'] not in track['album']['artists']:
|
||||
track['album']['artists'].append(artist['name'])
|
||||
if artist['role'] != "Main" and artist['name'] not in track['album']['artist']['Main'] or artist['role'] == "Main":
|
||||
if not artist['role'] in track['album']['artist']:
|
||||
track['album']['artist'][artist['role']] = []
|
||||
if artist['role'] != "Main" and artist['name'] not in track['album']['artist']['Main'] or artist['role'] == "Main":
|
||||
track['album']['artist'][artist['role']].append(artist['name'])
|
||||
if settings['removeDuplicateArtists']:
|
||||
track['album']['artists'] = uniqueArray(track['album']['artists'])
|
||||
|
@ -363,10 +364,11 @@ def getTrackData(dz, trackAPI_gw, settings, trackAPI=None, albumAPI_gw=None, alb
|
|||
track['artists'] = []
|
||||
for artist in trackAPI['contributors']:
|
||||
if artist['id'] != 5080 or artist['id'] == 5080 and len(trackAPI['contributors']) == 1:
|
||||
if artist['name'] not in track['artists']:
|
||||
track['artists'].append(artist['name'])
|
||||
if artist['role'] != "Main" and artist['name'] not in track['artist']['Main'] or artist['role'] == "Main":
|
||||
if not artist['role'] in track['artist']:
|
||||
track['artist'][artist['role']] = []
|
||||
if artist['role'] != "Main" and artist['name'] not in track['artist']['Main'] or artist['role'] == "Main":
|
||||
track['artist'][artist['role']].append(artist['name'])
|
||||
if settings['removeDuplicateArtists']:
|
||||
track['artists'] = uniqueArray(track['artists'])
|
||||
|
|
Loading…
Reference in New Issue