Skip to content

Commit d2bb1b4

Browse files
authored
Added MP3DescStorageStyle for LABEL and MEDIA (#95)
This PR adds the `TXXX:LABEL` and `TXXX:MEDIA` to the respective fields in the MediaFile class. These fields are read and written by foobar and Mp3Tag. For references see https://community.mp3tag.de/t/the-case-for-a-dedicated-label-tag/57647/17 and https://community.mp3tag.de/t/what-is-the-correct-tag-for-label/59445/2 closes #85
2 parents a602f02 + 1bfc560 commit d2bb1b4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ v1.0.0
2222
- Run pyupgrade to align code with Python 3.10+ syntax.
2323
- Added TSO2 tag to ``albumartist_sort``, matching how Picard >= 1.2, iTunes and
2424
Swinsian interpret tags.
25+
- Added ``TXXX:LABEL`` and ``TXXX:MEDIA`` tags to ``label`` and ``media``
26+
fields, respectively, for MP3 files.
2527

2628
v0.13.0
2729
-------

mediafile/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ def as_dict(self):
496496

497497
label = MediaField(
498498
MP3StorageStyle("TPUB"),
499+
MP3DescStorageStyle("LABEL"),
499500
MP4StorageStyle("----:com.apple.iTunes:LABEL"),
500501
MP4StorageStyle("----:com.apple.iTunes:publisher"),
501502
MP4StorageStyle("----:com.apple.iTunes:Label", read_only=True),
@@ -596,6 +597,7 @@ def as_dict(self):
596597
)
597598
media = MediaField(
598599
MP3StorageStyle("TMED"),
600+
MP3DescStorageStyle("MEDIA"),
599601
MP4StorageStyle("----:com.apple.iTunes:MEDIA"),
600602
StorageStyle("MEDIA"),
601603
ASFStorageStyle("WM/Media"),

0 commit comments

Comments
 (0)