INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Custom rules for file display extracted automatically ?  (Read 1670 times)

WouterW

  • Member
  • *
  • Posts: 3
Custom rules for file display extracted automatically ?
« 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.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Custom rules for file display extracted automatically ?
« Reply #1 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, which has a substring search mode.

So, you could use this search:

Code: [Select]
[Filename]="MFSL" [Bitrate]=>1200
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

WouterW

  • Member
  • *
  • Posts: 3
Re: Custom rules for file display extracted automatically ?
« Reply #2 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).
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9165
Re: Custom rules for file display extracted automatically ?
« Reply #3 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.

InflatableMouse

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3978
Re: Custom rules for file display extracted automatically ?
« Reply #4 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).
Logged

kstuart

  • Citizen of the Universe
  • *****
  • Posts: 1955
  • Upgraded to MC22 Master using preorder discount
Re: Custom rules for file display extracted automatically ?
« Reply #5 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).

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Custom rules for file display extracted automatically ?
« Reply #6 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!
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

WouterW

  • Member
  • *
  • Posts: 3
Re: Custom rules for file display extracted automatically ?
« Reply #7 on: February 13, 2013, 11:07:01 am »

Import / Export did the trick, thank you very much!
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Custom rules for file display extracted automatically ?
« Reply #8 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
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up