Fixed all track tagged as compilation if setting is enabled

This fixes #1
This commit is contained in:
RemixDev 2020-07-23 16:16:40 +02:00
parent 527a712cbc
commit e98b9c084a
1 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ def tagID3(stream, track, save):
tag.add(IPLS(people=involved_people))
if save['copyright']:
tag.add(TCOP(text=track['copyright']))
if save['savePlaylistAsCompilation']:
if save['savePlaylistAsCompilation'] and "playlist" in track:
tag.add(TCMP(text="1"))
if save['cover'] and track['album']['picPath']:
with open(track['album']['picPath'], 'rb') as f:
@ -139,7 +139,7 @@ def tagFLAC(stream, track, save):
tag["ORGANIZATION"] = track['contributors']['musicpublisher']
if save['copyright']:
tag["COPYRIGHT"] = track['copyright']
if save['savePlaylistAsCompilation']:
if save['savePlaylistAsCompilation'] and "playlist" in track:
tag["COMPILATION"] = "1"
if save['cover'] and track['album']['picPath']: