From 7f1eb0c5001cf2c68a006d667201bbd30a74b72c Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sun, 19 Dec 2021 17:28:56 +0100 Subject: [PATCH] Made ARTISTS tag optional --- deemix/settings.py | 1 + deemix/tagger.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/deemix/settings.py b/deemix/settings.py index d295226..b196101 100644 --- a/deemix/settings.py +++ b/deemix/settings.py @@ -67,6 +67,7 @@ DEFAULTS = { "tags": { "title": True, "artist": True, + "artists": True, "album": True, "cover": True, "trackNumber": True, diff --git a/deemix/tagger.py b/deemix/tagger.py index f19efc0..ee5c543 100644 --- a/deemix/tagger.py +++ b/deemix/tagger.py @@ -25,7 +25,8 @@ def tagID3(path, track, save): tag.add(TPE1(text=track.artistsString)) # Tag ARTISTS is added to keep the multiartist support when using a non standard tagging method # https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#artists - tag.add(TXXX(desc="ARTISTS", text=track.artists)) + if save['artists']: + tag.add(TXXX(desc="ARTISTS", text=track.artists)) if save['album']: tag.add(TALB(text=track.album.title)) @@ -145,7 +146,8 @@ def tagFLAC(path, track, save): tag["ARTIST"] = track.artistsString # Tag ARTISTS is added to keep the multiartist support when using a non standard tagging method # https://picard-docs.musicbrainz.org/en/technical/tag_mapping.html#artists - tag["ARTISTS"] = track.artists + if save['artists']: + tag["ARTISTS"] = track.artists if save['album']: tag["ALBUM"] = track.album.title