mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-28 18:46:13 +00:00
Made ARTISTS tag optional
This commit is contained in:
parent
ed22a396c8
commit
7f1eb0c500
|
@ -67,6 +67,7 @@ DEFAULTS = {
|
||||||
"tags": {
|
"tags": {
|
||||||
"title": True,
|
"title": True,
|
||||||
"artist": True,
|
"artist": True,
|
||||||
|
"artists": True,
|
||||||
"album": True,
|
"album": True,
|
||||||
"cover": True,
|
"cover": True,
|
||||||
"trackNumber": True,
|
"trackNumber": True,
|
||||||
|
|
|
@ -25,7 +25,8 @@ def tagID3(path, track, save):
|
||||||
tag.add(TPE1(text=track.artistsString))
|
tag.add(TPE1(text=track.artistsString))
|
||||||
# Tag ARTISTS is added to keep the multiartist support when using a non standard tagging method
|
# 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
|
# 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']:
|
if save['album']:
|
||||||
tag.add(TALB(text=track.album.title))
|
tag.add(TALB(text=track.album.title))
|
||||||
|
@ -145,7 +146,8 @@ def tagFLAC(path, track, save):
|
||||||
tag["ARTIST"] = track.artistsString
|
tag["ARTIST"] = track.artistsString
|
||||||
# Tag ARTISTS is added to keep the multiartist support when using a non standard tagging method
|
# 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
|
# 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']:
|
if save['album']:
|
||||||
tag["ALBUM"] = track.album.title
|
tag["ALBUM"] = track.album.title
|
||||||
|
|
Loading…
Reference in a new issue