Keep "Various Aritsts" tag only if it's the only artist in the track
This fixes #21
This commit is contained in:
@ -13,7 +13,7 @@ def tagID3(stream, track, save):
|
||||
|
||||
if save['title']:
|
||||
tag.add(TIT2(text=track['title']))
|
||||
if save['artist']:
|
||||
if save['artist'] and len(track['artists']):
|
||||
if save['multitagSeparator'] != "default":
|
||||
tag.add(TPE1(text=track['artistsString']))
|
||||
tag.add(TXXX(desc="ARTISTS", text=track['artists']))
|
||||
@ -21,7 +21,7 @@ def tagID3(stream, track, save):
|
||||
tag.add(TPE1(text=track['artists']))
|
||||
if save['album']:
|
||||
tag.add(TALB(text=track['album']['title']))
|
||||
if save['albumArtist']:
|
||||
if save['albumArtist'] and len(track['album']['artists']):
|
||||
tag.add(TPE2(text=track['album']['artists']))
|
||||
if save['trackNumber']:
|
||||
tag.add(TRCK(
|
||||
@ -79,7 +79,7 @@ def tagFLAC(stream, track, save):
|
||||
tag.clear_pictures()
|
||||
if save['title']:
|
||||
tag["TITLE"] = track['title']
|
||||
if save['artist']:
|
||||
if save['artist'] and len(track['artists']):
|
||||
if save['multitagSeparator'] != "default":
|
||||
tag["ARTIST"] = track['artistsString']
|
||||
tag["ARTISTS"] = track['artists']
|
||||
@ -87,7 +87,7 @@ def tagFLAC(stream, track, save):
|
||||
tag["ARTIST"] = track['artists']
|
||||
if save['album']:
|
||||
tag["ALBUM"] = track['album']['title']
|
||||
if save['albumArtist']:
|
||||
if save['albumArtist'] and len(track['album']['artists']):
|
||||
tag["ALBUMARTIST"] = track['album']['artists']
|
||||
if save['trackNumber']:
|
||||
tag["TRACKNUMBER"] = str(track['trackNumber'])
|
||||
|
Reference in New Issue
Block a user