Handling of non-unique field names in vorbis comment on Android (and desktop)
According to the xiph.org ( https://xiph.org/vorbis/doc/v-comment.html ), field names in vorbis comments are not required to be unique:
Field names are not required to be unique (occur once) within a comment header. As an example, assume a track was recorded by three well know artists; the following is permissible, and encouraged:
ARTIST=Dizzy Gillespie
ARTIST=Sonny Rollins
ARTIST=Sonny Stitt
I'm using this to give my tracks several genre fields, because a lot of songs can't be categorized as only one single genre. This works well on my desktop player (which is not VLC) where the song will show up in the list of genres under both genre 1 and genre 2. However, on both VLC Android and VLC desktop, the values of the two fields are concatenated. If in the vorbis comment, it says:
genre=genre1
genre=genre2
then this will show in the Android app, under the genres category, as "genre1 genre2". What I want is for the song to appear in one genre in the list called "genre1" and also in another genre in the list called "genre2".
My VLC Android version is the latest from F-Droid, 3.1.7 (Revision 1c70d300e). Since this is not a crash or anything like that, just something that doesn't seem to be implemented yet, I haven't included detailed device information. If someone asks for it, I will add it.
The file I tested with was an opus file.
This is mainly a problem on Android because that's where it makes a difference. I would like to be able to browse all of the songs in a genre from Audio > Genres.
As a workaround, I can do a search when in the genre category for the specific genre I'm looking for and then shuffle play the search results but this is a bit of a hassle and it doesn't really make it easy for me to see what genres are available before searching.