Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for MusicBrainz ID tags on MP3 and MP4 files #731

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sjohannes
Copy link
Member

This includes a fix to the _id3 module for a bug causing TXXX (custom) tags to be ignored.

Also adds isrc tag for MP4.

Fixes: #692

@sjohannes sjohannes marked this pull request as draft November 14, 2020 12:47
Based on https://picard.musicbrainz.org/docs/mappings/

The mapping is from the "Vorbis" entry to the "ID3" or "iTunes MP4" entry.

Fixes: exaile#692
For most of the tags with subtags, e.g. APIC:... or WOAR:..., we remove those
subtags. We can't do this for TXXX:..., which are all custom tags.

This change allows the Track Properties dialog to show the musicbrainz_* tags.
@sjohannes sjohannes marked this pull request as ready for review November 14, 2020 14:03
@sjohannes sjohannes marked this pull request as draft November 14, 2020 14:24
@sjohannes
Copy link
Member Author

Never mind, keeping this as a draft for now. The tags can't be saved yet:

ERROR   : Unknown exception: Could not write tags to file
Traceback (most recent call last):
  File "/exaile/xl/trax/track.py", line 362, in write_tags
    f.write_tags(self.__tags)
  File "/exaile/xl/metadata/_base.py", line 286, in write_tags
    self._set_tag(raw, rtag, value)
  File "/exaile/xl/metadata/_id3.py", line 155, in _set_tag
    frames = [id3.Frames[tag](encoding=3, text=data)]
KeyError: 'TXXX:MusicBrainz Album Id'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add MusicBrainz tag mappings
1 participant