Menu

Genre delimiter

J. P.
2015-01-11
2015-01-15
  • J. P.

    J. P. - 2015-01-11

    It appears that tagger# does not support multiple genres.

    MP3 with TCON = "genre1(null)genre2" outputs: "genre1" expected: genre1(some tagger# delim)genre2
    MP3 with TCON = "genre1;genre2" outputs: "genre1;genre2" expected: genre1(some tagger# delim)genre2
    MP3 with TCON = "genre1,genre2" outputs: "genre1,genre2" expected: genre1(some tagger# delim)genre2

    The first is by standard, the other 2 is common in the wild.

     
  • Ohad Schneider

    Ohad Schneider - 2015-01-13

    These appear to be taglib-sharp (the library I'm using) limitations. If you share sample mp3s for these cases I can verify. Unfortunately, if that is indeed the case, there's not much I can do about it seeing as I'm using the latest version according to their github page (https://github.com/mono/taglib-sharp/releases). I'd suggest opening an issue, but it looks pretty abandoned :(

     
  • Ohad Schneider

    Ohad Schneider - 2015-01-15

    I realized my answer could use some clarification
    (1) I believe this is a taglib-sharp issue.
    (2) Again, I believe in this case taglib-sharp simply sees the two genres as one. I suppose I could identify such cases and re-encode the genres back as two separate genres (which is the right thing to do only if genres are guaranteed to never have ";" in their name, or at least that's the vast majority in practice).
    (3) Here I can't tell from your report whether I parsed the genres correctly or I got both as a single one (as in case 2 above). This is because "," is the delimiter used by tagger#. Again, there is a question of whether it's reasonable to assume genres won't include ",".

    To sum up, I'll need a repro sample file for each of the above to be sure, and I need to know whether genres can include "," / ";" to do the right thing (where I can).

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.