-
Notifications
You must be signed in to change notification settings - Fork 28
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 reading differently named catalog number file tags #61
Conversation
on-disk fields other tagging software is using.
Out of curiosity I also got in contact with the dev of mp3tag and asked how he came to the naming decision of CATALOGID. Reply pending. |
All looks good, if this is a common thing we should support! Does mp3tag have some documentation we could link to here? Just to clarify, |
Hi, Unfortunately mp3tag's documentation does not include that CATALOGID field: https://docs.mp3tag.de/mapping/ But here is a screenshot of a fresh and uncustomized mp3tag for macOS installation, tagging an mp3 file from MusicBrainz:
Regarding the "old" behaviour of mp3tag with Discogs catno's I find the term These days no additional plugin/script/whatever is needed. Both MusicBrainz and Discogs are supported OOTB, which is stated here: https://docs.mp3tag.de/tag-sources/import/ |
Something else: I had an mp3 file that had a TXXX tag named Is that by any means possible? I can't find such a tag name variation in mediafile's code. |
Hmm; I'd be pretty surprised if we somehow magically found a TXXX tag with description |
ASFStorageStyle('CATALOGID', read_only=True), | ||
ASFStorageStyle('DISCOGS_CATALOG', read_only=True), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know these show up in Windows Media files too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am in contact with the mp3tag developer and asked him how exactly the WMA files CATALOGID tag looks like. He clarified that there is no prefix like WM/
and it's just the pure name. He also pointed me to the docs here, which also clarifies how exactly mp4 tags will look like: https://docs.mp3tag.de/mapping/#other-fields
As a sidenote, I also learned that WMA is actually only supported by the Windows version of mp3tag, not the macOS version.
So, yes, the tag definitions are correct like that :-)
ListStorageStyle('CATALOGID', read_only=True), | ||
ListStorageStyle('DISCOGS_CATALOG', read_only=True), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just checking whether we're being overzealous here… I understand that these strings might appear in the free-form tag formats, but do we actually know whether other software is putting analogous tags in stuff like MP4 frames? It seems best to be conservative and only include tags that we know are actually in use…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mp3tag supports MP4, this is how an mp4 frame looks like when tagged with it:
----:com.apple.iTunes:CATALOGID=MP4FreeForm(b'M.PM18', <AtomDataType.UTF8: 1>)
I might have understood something wrong here: I thought ListStorageStyle
is ment for FLAC and Vorbis files, analogous to StorageStyle
. That not the case?
Furthermore, I think, great news :-) mp3tag devloper Florian Heidenreich just told me that due to our conversation about this specific tag name, he changed the default to Also he included it in the docs: https://docs.mp3tag.de/mapping/ and it's talked about it in the forums already: https://community.mp3tag.de/t/do-we-need-to-change-catalogid-to-catalognumber-in-existing-tags/56792 👍 Since this PR was about to improve importing behaviour of older files and this changed just now in mp3tag, IMHO it certainly still is a feature addition that makes sense. |
Wow; great development! Thanks for doing the homework. 😃 Can you please throw a changelog entry onto this PR and we'll call it done? |
Changelog added :-) Thanks! |
Great; thank you for your diligent work on this!! Merged! ✨ |
Eg mp3tag was using DISCOGS_CATALOG a couple of years ago and is using CATALOGID, which my current tests using a trial version of mp3tag for macOS revealed.
This feature enables beets make use of these potentially available on-disk fields when importing and having
musicbrainz.extra_fields: ['catalognum']
set.