INTERACT FORUM

Please login or register.

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

Author Topic: More than one Genre in a Smartlist  (Read 2074 times)

Al ex

  • Citizen of the Universe
  • *****
  • Posts: 551
More than one Genre in a Smartlist
« on: July 24, 2014, 02:50:14 pm »

Just about to set up some new smartlists and finding out that it is not possible to define multiple genres in one rule - is that possible?
Was trying to define the rule RATING CONTAINS DANCE; HOUSE
Results is 0, as smartlist looks for Dance AND HOUSE in one genre.

How can i define in a rule Dance OR House?

Thx
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: More than one Genre in a Smartlist
« Reply #1 on: July 24, 2014, 02:59:59 pm »

You just pick multiple genres from the list.  Genre is any xxx, yyy, zzz.
Logged
Matt Ashland, JRiver Media Center

Al ex

  • Citizen of the Universe
  • *****
  • Posts: 551
Re: More than one Genre in a Smartlist
« Reply #2 on: July 24, 2014, 03:04:51 pm »

Just tried it with       IS ANY JAZZ --> gave me 1135 results

Then the same with       IS ANY ACID JAZZ; FREE JAZZ; JAZZ; JAZZ FUSION  --> gave me 318 files.

With multiple genres, it should be more results than with a single genre:(
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: More than one Genre in a Smartlist
« Reply #3 on: July 24, 2014, 03:11:19 pm »

Please copy/paste the contents of the Import/Export dialog here so we can look at it and tell you where you went astray.
Logged
"Some cultures are defined by their relationship to cheese."

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

Al ex

  • Citizen of the Universe
  • *****
  • Posts: 551
Re: More than one Genre in a Smartlist
« Reply #4 on: July 24, 2014, 03:30:44 pm »

Thanx Glynor,
you lead me to the right path. Actually by just clicking on Genres, I got somehow this:

[Rating]=5 [Genre]=[Acid Jazz],[Acoustic],[Jazz Fusion] ~sort=Random


After reading the info on JRiver Wiki what you can do "manually", I defined this, and imported it into the playlist - this works now:


[Rating]=5 ([Genre]=[Jazz] or [Genre]=[Acid Jazz] or [Genre]=[Acoustic] or [Genre]=[Jazz Fusion]) ~sort=Random

Doing complex search queries with the Import functionality is much easier - I think i like it and will look for some more complex ones the next days to optimize my smartlists :)
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42376
  • Shoes gone again!
Re: More than one Genre in a Smartlist
« Reply #5 on: July 24, 2014, 04:00:33 pm »

You shouldn't need to OR the rules together.  Just have Genre=[Acid Jazz],[Acoustic],[Jazz Fusion].
Logged
Matt Ashland, JRiver Media Center

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: More than one Genre in a Smartlist
« Reply #6 on: July 24, 2014, 04:33:06 pm »

You shouldn't need to OR the rules together.  Just have Genre=[Acid Jazz],[Acoustic],[Jazz Fusion].

Yep.

The problem with your original try was that you typed it in and used semicolons instead of commas.  Expressions use commas to separate values so if you typed it all in and used semicolons, so it considered the entire string one value instead of separate genres.
Logged
"Some cultures are defined by their relationship to cheese."

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

Al ex

  • Citizen of the Universe
  • *****
  • Posts: 551
Re: More than one Genre in a Smartlist
« Reply #7 on: July 25, 2014, 10:55:05 am »

OK, got it.

Just as a side note. I think the description in the Wiki is a bid missleading:

http://wiki.jriver.com/index.php/Smartlists

OR and AND operators can be used in smartlists by enclosing rules in () and using the operator between rules, eg:
([artist]=[Pink Floyd] or [artist]=[Genesis])
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: More than one Genre in a Smartlist
« Reply #8 on: July 25, 2014, 11:03:51 am »

No, that's right, it just isn't necessary in your case because it does OR by default.

That page is a bit... Older, and could use some tweaks.  The full documentation for Smartlists and Search Expressions are here:
http://wiki.jriver.com/index.php/Smartlist_and_Search_-_Rules_and_Modifiers

The Grouping and Combining Section covers all of this stuff:

Quote
(s1 op s2)    Groups search terms to force precedence when using multiple search terms with the and and the or operators.

Example: Return all files whose artist is exactly Bob Dylan and whose year is either 1966 or 2001:

[Artist]=[Bob Dylan] ([Date (year)]=1966 or [Date (year)]=2001)

Note the distinction of the example above with the following example:

[Artist]=[Bob Dylan] [Date (year)]=1966 or [Date (year)]=2001

The first example uses grouping parenthesis to force the order of evaluation, and returns files from Bob Dylan as the artist, from the year 1966 or 2001. The second example, due to order of evaluation from left to right, returns files with Bob Dylan as the artist from the year 1966, and also returns all files with year 2001.

val1,val2    Combines two or more values into a list, identical to the or operator. No spaces are allowed between the comma(s) and the values.

Example: Return all files whose artist is any of Queen, Heart, or the Grateful Dead:

artist=[Queen],[Heart],"Grateful Dead"

The search phrase in the example above is identical to the more cumbersome:

([Artist]=[Queen] or [Artist]=[Heart] or [Artist]="Grateful Dead")
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/
Pages: [1]   Go Up