Skip to content

Commit 78b08f1

Browse files
committed
Add id3 TSO2 tag to albumartist_sort
This tag is a non-standard tag used by iTunes, Apple Music, MusicBrainz Picard, and Swinsian (at least) in preference of the User Frame ALBUMARTISTSORT. See the Picard Tag Mapping documentation at https://picard-docs.musicbrainz.org/downloads/MusicBrainz_Picard_Tag_Map.html By adding this I'm able to get beets to update the Album Artist Sort in Swinsian. Thanks to James Bruton who develops Swinsian for the help diagnosing why my fields weren't changing in Swinsian, and pointing me at the Picard documentation showing its preference for TSO2.
1 parent 83157ca commit 78b08f1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/changelog.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Upcoming
1010
the codebase with ``ruff``.
1111
- Moved changelog into its own file, ``changelog.rst``. Also added github workflow
1212
for automatic changelog reminders.
13+
- Added TSO2 tag to albumartist_sort, matching how Picard >= 1.2, iTunes and
14+
Swinsian interpret tags.
1315

1416
v0.13.0
1517
'''''''

mediafile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,6 +1949,7 @@ def as_dict(self):
19491949
ASFStorageStyle("WM/ArtistSortOrder"),
19501950
)
19511951
albumartist_sort = MediaField(
1952+
MP3StorageStyle("TSO2"),
19521953
MP3DescStorageStyle("ALBUMARTISTSORT"),
19531954
MP4StorageStyle("soaa"),
19541955
StorageStyle("ALBUMARTISTSORT"),

0 commit comments

Comments
 (0)