Author Topic: MB_OpenFilterInTab Issues  (Read 391 times)

zkhcohen

  • Sr. Member
  • ****
  • Posts: 293
Hi Steven,

I'm trying to search/filter the library based on a search term. I'm using "MB_OpenFilterInTab", but I've noticed that the only comparison types are Is and IsSimilar. I would like to be able to filter MetaDataTypes using the 'contains' comparator.

Additionally, and I'm probably misunderstanding this functionality, I would like to be able to search multiple MetaDataTypes at once. Using MB_OpenFilterInTab with MetaDataType.TrackTitle and MetaDataType.AlbumArtist does not return results from both types.


Could you explain this format? Is this 'AND' by default and not 'OR'?

Code
public delegate bool MB_OpenFilterInTabDelegate(MetaDataType field1, ComparisonType comparison1, string value1, MetaDataType field2, ComparisonType comparison2, string value2);

Any help or an enhancement would be excellent.

Thanks again,

Zach




EDIT: After further testing it searches for field1 and field2 simultaneously. Logically, it operates as 'AND'.
Last Edit: May 20, 2019, 12:07:53 PM by zkhcohen

Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 31045
the next 3.3 update has
        Is = 0
        IsNot = 1
        Contains = 4
        DoesNotContain = 5
        StartsWith = 6
        EndsWith = 7
        Similar = 20

its an AND condition

https://getmusicbee.com/patches/MusicBee33_Patched.zip
Last Edit: May 20, 2019, 09:58:28 PM by Steven

zkhcohen

  • Sr. Member
  • ****
  • Posts: 293
the next 3.3 update has
        Is = 0
        IsNot = 1
        Contains = 4
        DoesNotContain = 5
        StartsWith = 6
        EndsWith = 7
        Similar = 20

its an AND condition

https://getmusicbee.com/patches/MusicBee33_Patched.zip

This is fantastic. Thank you.