From 9b0b2275926b9994dd84173d665f651b07c3b218 Mon Sep 17 00:00:00 2001 From: Moonbase59 Date: Sun, 29 Sep 2019 18:14:09 +0200 Subject: [PATCH 1/3] Add releasegroupdisambig MediaField --- mediafile.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mediafile.py b/mediafile.py index 4ac373a..e0ea643 100644 --- a/mediafile.py +++ b/mediafile.py @@ -1843,6 +1843,13 @@ def update(self, dict): StorageStyle('MUSICBRAINZ_ALBUMCOMMENT'), ASFStorageStyle('MusicBrainz/Album Comment'), ) + releasegroupdisambig = MediaField( + # This tag mapping was invented for beets (not used by Picard, etc). + MP3DescStorageStyle(u'MusicBrainz Release Group Comment'), + MP4StorageStyle('----:com.apple.iTunes:MusicBrainz Release Group Comment'), + StorageStyle('MUSICBRAINZ_RELEASEGROUPCOMMENT'), + ASFStorageStyle('MusicBrainz/Release Group Comment'), + ) # Release date. date = DateField( From 03e08180b8f1ce6888aed37ff94db59c67155275 Mon Sep 17 00:00:00 2001 From: Moonbase59 Date: Sun, 29 Sep 2019 18:20:56 +0200 Subject: [PATCH 2/3] Add releasegroupdisambig to unit tests --- test/test_mediafile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_mediafile.py b/test/test_mediafile.py index 8d1ea8b..887d23d 100644 --- a/test/test_mediafile.py +++ b/test/test_mediafile.py @@ -395,6 +395,7 @@ class ReadWriteTestBase(ArtTestMixin, GenreListTestMixin, 'albumstatus', 'media', 'albumdisambig', + 'releasegroupdisambig', 'artist_credit', 'albumartist_credit', 'original_year', From 7dbeafe1cc415fa76e5eb18e33e6fb8b300c191f Mon Sep 17 00:00:00 2001 From: Moonbase59 Date: Sun, 29 Sep 2019 18:31:26 +0200 Subject: [PATCH 3/3] Correct line too long --- mediafile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mediafile.py b/mediafile.py index e0ea643..2256b63 100644 --- a/mediafile.py +++ b/mediafile.py @@ -1846,7 +1846,8 @@ def update(self, dict): releasegroupdisambig = MediaField( # This tag mapping was invented for beets (not used by Picard, etc). MP3DescStorageStyle(u'MusicBrainz Release Group Comment'), - MP4StorageStyle('----:com.apple.iTunes:MusicBrainz Release Group Comment'), + MP4StorageStyle('----:com.apple.iTunes:MusicBrainz ' + 'Release Group Comment'), StorageStyle('MUSICBRAINZ_RELEASEGROUPCOMMENT'), ASFStorageStyle('MusicBrainz/Release Group Comment'), )