INTERACT FORUM

Please login or register.

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

Author Topic: Smartlist Rules Problem  (Read 629 times)

davidperetz

  • Junior Woodchuck
  • **
  • Posts: 52
Smartlist Rules Problem
« 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
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!
Re: Smartlist Rules Problem
« Reply #1 on: October 26, 2022, 06:28:35 am »

Separate the paths you want to search with a comma.  See the wiki for more information.
Logged
Matt Ashland, JRiver Media Center

davidperetz

  • Junior Woodchuck
  • **
  • Posts: 52
Re: Smartlist Rules Problem
« Reply #2 on: October 26, 2022, 06:40:13 am »

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
Logged

erviv

  • World Citizen
  • ***
  • Posts: 220
Re: Smartlist Rules Problem
« Reply #3 on: October 26, 2022, 06:53:38 am »

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.
Logged
MacBook Pro i5 2.3Ghz 8 GB (early 2011) 1Tb SSD; 3 Raspberry pi’s 4 and 2@ 3B (o/s: Buster).

davidperetz

  • Junior Woodchuck
  • **
  • Posts: 52
Re: Smartlist Rules Problem
« Reply #4 on: October 26, 2022, 07:10:33 am »

Im trying for more than half an hour to learn from the wiki but i cant get it done

can someone help?
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Smartlist Rules Problem
« Reply #5 on: October 26, 2022, 09:44:22 am »

You want something like this:

Code: [Select]
[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:

Code: [Select]
([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.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Smartlist Rules Problem
« Reply #6 on: October 26, 2022, 10:09:53 am »

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
Logged

davidperetz

  • Junior Woodchuck
  • **
  • Posts: 52
Re: Smartlist Rules Problem
« Reply #7 on: October 29, 2022, 04:22:41 am »

Thank you blgentry and lepa

That did the trick and worked

i tried that before only with the ()

Thanks again
Logged
Pages: [1]   Go Up