Author Topic: Filters vs New (Additional) Library  (Read 8459 times)

psychoadept

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10618
I believe the goal is to include the track even if "comedy" is present.  So excluding only those tracks where comedy.is the ONLY genre.
Last Edit: April 06, 2015, 01:17:03 AM by psychoadept
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

Pingaware

  • Hero Member
  • *****
  • Posts: 1100
Short answer - yes. Using this new found knowledge (which I'd never thought of), can anyone think of a way to get "Genre is only x" (i.e., no multiple genres)?
Bold words in my posts are links unless expressly stated otherwise. Have fun with them!

psychoadept

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10618
Short answer - yes. Using this new found knowledge (which I'd never thought of), can anyone think of a way to get "Genre is only x" (i.e., no multiple genres)?

Using Genes as a virtual tag, that could.be done with regex.

Added: actually, to get "genre is NOT only x", it might be easier to use the virtual tag to do the check, with a $Match function, and then filter based on the result (I.e. Y/N as the output of the virtual tag).

I think a wishlist request to be able to use Genres in filters is in order, either way.
Last Edit: April 06, 2015, 01:27:33 AM by psychoadept
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

Bee-liever

  • Member
  • Hero Member
  • *****
  • Posts: 3752
  • MB Version: 3.5.8155 P
I believe the goal is to include the track even if "comedy" is present.  So excluding only those tracks where comedy.is the ONLY genre.

Yep. I see now I had it round the wrong way. Was trying to exclude 'Comedy' from Comedy; Rock'.

can anyone think of a way to get "Genre is only x" (i.e., no multiple genres)?

If <Genres> is set up as a virtual tag you can use the regex ^((?!;).)*$ to exclude files with multiple genre tags
( ^((?!my string).)*$ = does not contain "my string" )
MusicBee and my library - Making bee-utiful music together

psychoadept

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 10618
If <Genres> is set up as a virtual tag you can use the regex ^((?!;).)*$ to exclude files with multiple genre tags
( ^((?!my string).)*$ = does not contain "my string" )

Aha!  I knew there was a way to get "not" with regex, but I wasn't in a good position to look it up earlier.
MusicBee Wiki
Use & improve MusicBee's documentation!

Latest beta patch (3.5)
(Unzip and overwrite existing program files)

phred

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7623
can anyone think of a way to get "Genre is only x" (i.e., no multiple genres)?
If <Genres> is set up as a virtual tag you can use the regex ^((?!;).)*$ to exclude files with multiple genre tags
( ^((?!my string).)*$ = does not contain "my string" )
If I understand this correctly, this doesn't accomplish my goal.  My album is tagged "comedy; rock".  If "my string" were set to "comedy" than tracks tagged with this formula would show up because the tag -does- contain "comedy."

For the record, I did accomplish what I wanted thanks to psychoadept's response in reply #10.
Download the latest MusicBee v3.4 patch from here.
Download the latest MusicBee v3.5 beta patch from here.
Unzip into your MusicBee directory and overwrite existing files.

----------
Check out the MusicBee Wiki.
How to post screenshots is here

Pingaware

  • Hero Member
  • *****
  • Posts: 1100
Added: actually, to get "genre is NOT only x", it might be easier to use the virtual tag to do the check, with a $Match function, and then filter based on the result (I.e. Y/N as the output of the virtual tag).

This is similar to what I already do. Was just wondering if there was an easier way - turns out there isn't.
Bold words in my posts are links unless expressly stated otherwise. Have fun with them!