Multiple genres are not recognized by filters

You found a bug or have any issues? Please post them here!
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Multiple genres are not recognized by filters

Post by hdradio »

v.3.0.15.21
Many of my songs have 2 genres in their tag. When I test a filter asking for the second genre tag it does not result of any track.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Multiple genres are not recognized by filters

Post by radio42 »

The genre TAG is a single string (text).
If multiple genres are defined, they are simple separat d by a semicolon.
As such you can not apply an EQUALS filter.
Instead use the CONTAINS filter.
Did you do that?
Please show the filter you sre using!
I guess it is not a bug :-)
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Multiple genres are not recognized by filters

Post by hdradio »

I think it's a bug because I can not use CONTAINS.
I 'll explain why:
I have a song that has genres "something" and "Rock Ballad"
I have another song that has genres "blabla" and "Rock"
If I use CONTAINS "Rock", the result will also return the first song.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Multiple genres are not recognized by filters

Post by radio42 »

Sorry, it is NOT a bug, as said, the genre TAG within ProppFrexx is a single string! As such EQUALS always compares the entire string text!
Note, that some file formats (e.g. MP3) might actually support multiple separate genres, but other formats don't! As such ProppFrexx 'sees' the genre as a single string text to support ALL formats equally.

So you must either use mutual exclusive TAGs, or your filter simply gets a bit more complex based on all your genres you are using.
For example if the genre strings for 2 tracks might be:
1. "Rock"
2. "blabla; Rock Ballad"

And you just want to select the first track, your filter might be: (CONTAINS "Rock") AND (NOT CONTAINS "Rock Ballad").
Or you are using the extended MatchesAnyOf resp. ContainsAnyOf:
See here: viewtopic.php?f=9&t=27&p=78
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Multiple genres are not recognized by filters

Post by hdradio »

I haven't thought of "And NOT CONTAINS"
Thank you for the suggestion.
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Multiple genres are not recognized by filters

Post by hdradio »

One more note. You say
as said, the genre TAG within ProppFrexx is a single string! As such EQUALS always compares the entire string text!

It looks strange to me because in my tests here, the EQUALS does not compare the entire string.
If my tag is: "blabla; Rock" and I look for EQUALS "blabla", it finds that title but it shouldn't. Right ?
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Multiple genres are not recognized by filters

Post by radio42 »

Just made a quick test here and yes, that is exactly what it is doing here (it only finds exact matches).
If not on your side, please show me your exact filter string and how you are testing things...
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Multiple genres are not recognized by filters

Post by hdradio »

Bernd I don't know if I am doing something wrong, but I am testing things and :
I have a track that has two genres and according to your info the tag string that PF reads is: "genre1; genre2"
I have another track that has genre: "genre2"

In find track I use: "e:genre2" or use "~Contains([Genre], 'genre2')" (without ") it finds only the second track. It should return both.
Also when I look for "=e:genre1" or use "~[Genre] = 'genre1'" it does not return any track.

This is a big problem for me because I have thousands of tracks having 2 gernes.
That now explains why all of those tracks have never been on air.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Multiple genres are not recognized by filters

Post by radio42 »

Please send me those 2 tracks in question. As here with my tracks it works fine.
User avatar
hdradio
Posts: 625
Joined: 10 Apr 2012 17:36
Location: Crete, Hellas
Re: Multiple genres are not recognized by filters

Post by hdradio »

Do you want to start a TV session ? It's easier to show you.

edit:
Nevermind. I 've sent you the files.

edit2:
Just now happened the other issue about the track not removed. You could see that by yourself.

Post Reply