diff --git a/mediafile.py b/mediafile.py index 4ac373a..538c153 100644 --- a/mediafile.py +++ b/mediafile.py @@ -1931,6 +1931,26 @@ def update(self, dict): ASFStorageStyle('MusicBrainz/Release Group Id'), ) + # Discogs fields. + discogs_labelid = MediaField( + MP3DescStorageStyle(u'Discogs Label Id'), + MP4StorageStyle('----:com.apple.iTunes:Discogs Label Id'), + StorageStyle('DISCOGS_LABELID'), + ASFStorageStyle('Discogs/Label Id'), + ) + discogs_albumid = MediaField( + MP3DescStorageStyle(u'Discogs Album Id'), + MP4StorageStyle('----:com.apple.iTunes:Discogs Album Id'), + StorageStyle('DISCOGS_ALBUMID'), + ASFStorageStyle('Discogs/Album Id'), + ) + discogs_artistid = MediaField( + MP3DescStorageStyle(u'Discogs Artist Id'), + MP4StorageStyle('----:com.apple.iTunes:Discogs Artist Id'), + StorageStyle('DISCOGS_ARTISTID'), + ASFStorageStyle('Discogs/Artist Id'), + ) + # Acoustid fields. acoustid_fingerprint = MediaField( MP3DescStorageStyle(u'Acoustid Fingerprint'), diff --git a/test/test_mediafile.py b/test/test_mediafile.py index 8d1ea8b..df839d0 100644 --- a/test/test_mediafile.py +++ b/test/test_mediafile.py @@ -371,6 +371,9 @@ class ReadWriteTestBase(ArtTestMixin, GenreListTestMixin, 'mb_workid', 'mb_albumid', 'mb_artistid', + 'discogs_artistid', + 'discogs_labelid', + 'discogs_albumid', 'art', 'label', 'rg_track_peak',