Author Topic: $split does not work correctly in Genre if multi-value (when ";" is separator)  (Read 889 times)

techvslife

  • Newbie
  • *
  • Posts: 14
When I have a multi-value Genre tag, such as:
Classical; Cantata
then $Split(<Genre>,;,2) does not work, although it works for other multi-valued tags such as <Sort Artist>.
I tested changing the tag to a non-multi-value, such as:
Classical~Cantata
and then $Split(<Genre>,~,2) does work.

But now I have to use two different separators, one for Genre tag, the other for all other tags.
This looks like a bug, but perhaps there is a reason for this behavior?  Is Genre prohibited from being multi-value?
Note this is an m4a (aac or mp4 audio only file).
Thank you.


techvslife

  • Newbie
  • *
  • Posts: 14
No, because my reader programs use <Genre>, not <Genres> tag.
I see what you mean. For some reason, using <Genres> in MusicBee reads the <Genre> tag as multiple-value correctly, and split works on it.
Thanks! I assume it's documented somewhere I missed....
Last Edit: May 22, 2023, 04:52:01 AM by techvslife

frankz

  • Sr. Member
  • ****
  • Posts: 3876
I don't know if it's documented LOL.  Just saw it in the tags and figured it was worth a shot. 

There's a wiki - you can document it if you'd like to.