2024-01-19, 09:56
(2024-01-18, 15:15)ashlar Wrote: Well, thanks a lot for even wanting to spend some time looking into this niche of a niche. Much appreciated.
I have some stuff in my library which would benefit from this, so it's purely selfish!!
Anyway, I have already found some limitations. the matroska spec allows for multiple tags for the same thing, eg you can have multiple "Composer" tags, with each set to a single composer. mp3tag can read and write those correctly, but ffmpeg, and therefore Kodi, only reads one tag and ignores the others.
This means that for multiple composers, the tag has to have a value of "composer1;composer2;composer3" etc. Current valid separators are ";", "/", ",", "&", " and ". As there is no standard as such as to how Kodi expects these tags to be formatted, we will, between us all, invent one!
So, what I have at the moment will accept one tag named "Composer" (case is irrelevant) with a value of one or more of
- Richard Wright;Clare Torry
- Richard Wright/Clare Torry
- Richard Wright,Clare Torry
- Richard Wright & Clare Torry
- Richard Wright and Clare Torry
Same goes for the INSTUMENTS tag, which needs to contain a comma separated list of instrument,performer. This is how tags are handled at a low level, but usually, your tagging software formats it all up correctly.
It works, but the code is currently not pretty at all. It's certainly not something I would PR right now, but as a POC, it does what it should. You can't see them in the screenshot but the correct Artist, album and track musicbrainz ID's are in the db.