INTERACT FORUM

More => Old Versions => JRiver Media Center 18 for Windows => Topic started by: WouterW on February 13, 2013, 10:05:41 am

Title: Custom rules for file display extracted automatically ?
Post by: WouterW on February 13, 2013, 10:05:41 am
hi everyone,

Been testing media center for the past few weeks, great software!

Now I would like to create a smart view with custom rules for file display:

[Filename]=MFSL or [Bitrate] > 1200

I tried adding a custom rule with the above content but when i click ok the [Filename]=MFSL part is extracted and placed in a new Filename | contains rule automatically.

Now the problem is that all these rules need to satisfy (and) instead of either one (or).

Maybe i'm doing something wrong or maybe there is a workaround to use OR instead of AND ?

Using version 18.0.106 on Windows 7.
Title: Re: Custom rules for file display extracted automatically ?
Post by: glynor on February 13, 2013, 10:16:04 am
Are you trying to AND the rules or OR them?  In other words, you're trying to make a rule that filters the view to show only files that contain MFSL in the [Filename] tag somewhere, OR have a bitrate of more than 1200?  Or MFSL AND bitrate > 1200?

Nevermind.  I read better.

MC automatically ANDs all the rules you add to a particular view.  There are ways to make it OR, but if you just need it to AND, you should be good to go.

To test if a tag contains a substring you just change the "middle part" of the rule definition from "Is" to "Contains".  If you're writing an expression, you can also use the IsEqual() function (http://wiki.jriver.com/index.php/Media_Center_expression_language#IsEqual.28....29:_Compares_two_values_in_one_of_nine_specified_modes), which has a substring search mode.

So, you could use this search:

Code: [Select]
[Filename]="MFSL" [Bitrate]=>1200
Title: Re: Custom rules for file display extracted automatically ?
Post by: WouterW on February 13, 2013, 10:21:22 am
Thank you for the quick reply!

I would like to OR the following rules:

- Filename (folder name actually) containing MFSL
- Bitrate > 1200

View as is set to 'panes', showing Location (my music folder).
Title: Re: Custom rules for file display extracted automatically ?
Post by: marko on February 13, 2013, 10:28:36 am

[Filename]=MFSL or [Bitrate] > 1200

Now the problem is that all these rules need to satisfy (and) instead of either one (or).

Maybe i'm doing something wrong or maybe there is a workaround to use OR instead of AND ?
Rather conflicting information in the problem description above.

If you actually want "[Filename]=MFSL or [Bitrate] > 1200", wrap it in parenthesis, and remove the spaces, like so: ([Filename]="MFSL" or [Bitrate]=>1200)

Here's a strangely hidden way to add parenthesis directly from the wizard GUI: http://yabb.jriver.com/interact/index.php?topic=46456.0, though personally, I prefer typing in the Import / Export box.
Title: Re: Custom rules for file display extracted automatically ?
Post by: InflatableMouse on February 13, 2013, 10:40:12 am
Instead of keeping MFSL in the filename, you can add a field to the library in MC which makes things much more managable. I've done the same thing because I kept loosing track of which albums were actually MFSL releases and sometimes even deleted the wrong one. In this custom field, I enter the actual MFSL Catalog Number (like for example, UDCD 601).

Another thing I can recommend is using Analyze audio (if you're not doing that already) from the Library Tools submenu. This will calculate proper replay gain values for tracks and also calculates the album gain field. Adding Album Gain to your views quickly allows you to separate "bad" versions from the "good" ones as the "good ones" will typically have much higher replay gain values (and album gain, obviously).
Title: Re: Custom rules for file display extracted automatically ?
Post by: kstuart on February 13, 2013, 10:46:01 am
I had this same question yesterday (about how to OR two rules), and figured out to how to do an "or" (in the Import/Export) just as I pressed Post, so I ended up deleting the question.

I can see now that I should instead have answered my own question so that it was visible to others (like the OP).
Title: Re: Custom rules for file display extracted automatically ?
Post by: glynor on February 13, 2013, 10:58:04 am
I had this same question yesterday (about how to OR two rules), and figured out to how to do an "or" (in the Import/Export) just as I pressed Post, so I ended up deleting the question.

I can see now that I should instead have answered my own question so that it was visible to others (like the OP).

Hah!  I was typing an answer to that post when you deleted it.  When I hit post, it said the thread was missing or inaccessible to me.

I was confused for a bit!
Title: Re: Custom rules for file display extracted automatically ?
Post by: WouterW on February 13, 2013, 11:07:01 am
Import / Export did the trick, thank you very much!
Title: Re: Custom rules for file display extracted automatically ?
Post by: MrC on February 13, 2013, 11:52:23 am
Been testing media center for the past few weeks, great software!

Since you are new, here's a smartlist rules link that might be useful:

    http://wiki.jriver.com/index.php/Smartlist_and_Search_-_Rules_and_Modifiers (http://wiki.jriver.com/index.php/Smartlist_and_Search_-_Rules_and_Modifiers)