Added compilation tag to deezer's compilations

This commit is contained in:
RemixDev
2020-09-20 10:50:09 +02:00
parent 6f1e7ccbb1
commit 4e7b170720
2 changed files with 5 additions and 5 deletions

View File

@ -76,7 +76,7 @@ def tagID3(stream, track, save):
if save['copyright']:
tag.add(TCOP(text=track.copyright))
if save['savePlaylistAsCompilation'] and track.playlist:
if save['savePlaylistAsCompilation'] and track.playlist or track.album['recordType'] == "compile":
tag.add(TCMP(text="1"))
if save['cover'] and track.album['picPath']:
@ -156,7 +156,7 @@ def tagFLAC(stream, track, save):
if save['copyright']:
tag["COPYRIGHT"] = track.copyright
if save['savePlaylistAsCompilation'] and track.playlist:
if save['savePlaylistAsCompilation'] and track.playlist or track.album['recordType'] == "compile":
tag["COMPILATION"] = "1"
if save['cover'] and track.album['picPath']: