INTERACT FORUM
More => Old Versions => JRiver Media Center 30 for Windows => Topic started by: davidperetz on October 26, 2022, 03:51:18 am
-
Hello to Everyone
I'm trying to create a smarlist with few rules like:
[Media Type]=[Video] [Filename (path)]="Example1" [Filename (path)]="Example2" ~sort=[Date]-d
When i choose only 1 filename path contains ... its ok and gives results , but when i add the second filename path contains it empty the smartlist
What am im doing wrong?
Thanks
-
Separate the paths you want to search with a comma. See the wiki for more information.
-
I have tried that as well , still it empty the smartlist
its like when i add another rule of filepath it searches for all of them together and not each seperate
-
Agree you should check the wiki. I believe even with commas in your expression it's reading as an ‘and’ statement so won’t return any results.
-
Im trying for more than half an hour to learn from the wiki but i cant get it done
can someone help?
-
You want something like this:
[Filename (path)]="Example1","Example2"
No spaces between the arguments. You can also explicitly use an "or", but it seems that you have to use parenthesis around the arguments to the or like:
([Filename (path)]="Example1") or ([Filename (path)]="Example2")
Reference: https://wiki.jriver.com/index.php/Search_Language#Grouping_and_Combining
I hope that helps get you started.
Brian.
-
I think that parenthesis that you want is like this so both operators are covered with common parenthesis not both operators individually
[Media Type]=[Video] ([Filename (path)]="Example1" or [Filename (path)]="Example2") ~sort=[Date]-d
-
Thank you blgentry and lepa
That did the trick and worked
i tried that before only with the ()
Thanks again