Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ v1.0.0
Swinsian interpret tags.
- Added ``TXXX:LABEL`` and ``TXXX:MEDIA`` tags to ``label`` and ``media``
fields, respectively, for MP3 files.
- Added POPM (popularity meter) tag support.

v0.13.0
-------
Expand Down
8 changes: 7 additions & 1 deletion mediafile/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,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),
MP4StorageStyle("\xa9url"),
Expand Down
1 change: 1 addition & 0 deletions test/test_mediafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,7 @@ def test_known_fields(self):
"albumartists_credit",
"albumartists_sort",
"subtitle",
"popm",
)
)
self.assertCountEqual(MediaFile.fields(), fields)
Expand Down