INTERACT FORUM

More => Old Versions => JRiver Media Center 30 for Windows => Topic started by: AlreadyFree on November 16, 2022, 01:27:36 pm

Title: Need help with smartlist (Random Double Artists)
Post by: AlreadyFree on November 16, 2022, 01:27:36 pm
I'm trying to build a smartlist that will play two songs apiece by randomly selected artists. I've gotten it working but was wondering if there's any way to include songs that have a featuring artist matched with songs that have the same main artist?

Example:

[artist]=Mark Lanegan

would be available to be matched with

[artist]=UNKLE, [name]=Another Night Out [featuring Mark Lanegan]

This is the code I have working now:

Code: [Select]
~limit=-1,1,[Album Artist (Custom)] ~expand="Album Artist (Custom)" ~seq ~dup=[Album Artist /(Custom/)] ~sort=Random ~limit=-1,2,[Album Artist (Custom)] ~sort=[Sequence] ~n=100
[Album Artist (Custom)]=If(isequal([Album Artist],Various Artists,1), [Artist], [Album Artist])