diff --git a/mediafile.py b/mediafile.py index a5ec5e5..c708aa0 100644 --- a/mediafile.py +++ b/mediafile.py @@ -1881,6 +1881,13 @@ def as_dict(self): ASFStorageStyle('TotalDiscs'), out_type=int, ) + popm = MediaField( + MP3StorageStyle('POPM'), + MP4StorageStyle('POPM', as_type=int), + StorageStyle('POPM'), + ASFStorageStyle('Popm'), + out_type=int + ) url = MediaField( MP3DescStorageStyle(key='WXXX', attr='url', multispec=False), diff --git a/test/test_mediafile.py b/test/test_mediafile.py index 8105983..60baae7 100644 --- a/test/test_mediafile.py +++ b/test/test_mediafile.py @@ -1114,7 +1114,8 @@ def test_known_fields(self): ('encoder', 'images', 'genres', 'albumtype', 'artists', 'albumartists', 'url', 'mb_artistids', 'mb_albumartistids', 'albumtypes', 'catalognums', 'languages', 'artists_credit', - 'artists_sort', 'albumartists_credit', 'albumartists_sort') + 'artists_sort', 'albumartists_credit', 'albumartists_sort', + 'popm') ) assertCountEqual(self, MediaFile.fields(), fields)