INTERACT FORUM

More => Old Versions => JRiver Media Center 25 for Windows => Topic started by: BryanC on April 13, 2019, 11:09:57 am

Title: Smartlist expression to return only n number of songs from each artist
Post by: BryanC on April 13, 2019, 11:09:57 am
I've currently got a smartlist with about 100 different artists, each artist having one to maybe twenty tracks each. What I would like to accomplish is the creation of a sampler playlist where each artist only has n (probably one or two) songs each, chosen at random. I've spent some time using global variables, but I think that this one is beyond me.
Title: Re: Smartlist expression to return only n number of songs from each artist
Post by: MrBiff on April 13, 2019, 02:19:52 pm
See ~limit under Modifiers:

https://wiki.jriver.com/index.php/Search_Language#Modifiers

example:

   ~limit=100,2,[artist]
Title: Re: Smartlist expression to return only n number of songs from each artist
Post by: BryanC on April 14, 2019, 04:57:00 pm
Thanks! I didn't know that wiki page existed, I should've known there was an easier solution.