INTERACT FORUM

Please login or register.

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

Author Topic: Smartlist expression to return only n number of songs from each artist  (Read 861 times)

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2663

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.
Logged

MrBiff

  • World Citizen
  • ***
  • Posts: 151

See ~limit under Modifiers:

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

example:

   ~limit=100,2,[artist]
Logged

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2663

Thanks! I didn't know that wiki page existed, I should've known there was an easier solution.
Logged
Pages: [1]   Go Up