INTERACT FORUM

Please login or register.

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

Author Topic: Smartlist problem  (Read 753 times)

risingdamp

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 419
Smartlist problem
« on: January 03, 2005, 03:18:46 am »

I use this rule in a view scheme to select 10 tracks from the 80's at random:

[Rating]=>=3 ~sort=[Random] [Decade]=[80s] ~limit=10,1,[artist]

Is there any way to create a view scheme rule that will offer a selection of each year from the 80s and then randomly play 10 tracks from the year selected?  I've tried adding Year as an item to the above view scheme but that won't work because ~limit means it's only selected 10 tracks from the 80s so you only get one or two from the year you selected.

Any ideas?
Logged
JLee

risingdamp

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 419
Re: Smartlist problem
« Reply #1 on: January 03, 2005, 02:20:38 pm »

Well after a moment of inspiration I solved my own puzzle.  I create a view scheme with an item of 'Date (Year)' and this view scheme rule:

[Rating]=>=3 ~sort=[Random] [Decade]=[80s] ~limit=-1,3,[Artist] ~limit=-1,10,[Date (year)]

The first ~limit ensures that the same artist appears only 3 times and the second one ensures that the same date only appears 10 times.  Therefore, when you drill down into a date you have 10 random tracks from that year.
Logged
JLee
Pages: [1]   Go Up