INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Windows => Topic started by: sg60 on January 27, 2019, 03:31:42 pm

Title: Creating a Smartlist that randomizes complete albums
Post by: sg60 on January 27, 2019, 03:31:42 pm
I could use some help here. I've created lots of smartlists before but I think this is a situation where my ambition exceeds my skill level.

Here's what I want to do. I have a portable player with a 128GB storage card. I want to put a bunch of complete albums on the card but I have many more albums than will fit on the card. So I thought what if I create a playlist with a full list of complete albums to draw from and then create a smartlist that would use the first one as a source but randomly pick complete albums from the first list to store on the card. The second smartlist would have to be limited to the capacity of the storage card.

Is this possible and how would I do it?
Title: Re: Creating a Smartlist that randomizes complete albums
Post by: swiv3d on January 27, 2019, 03:56:30 pm
Don't know how you would do that but how about-

[Media Type]=[Audio] ~limit=300,1,[album] ~a ~s=128000

Which will pick 300 single tracks from your library, 1 per album, then expand them to full albums and limit the total size to 128GB

You can alter the 300 number depending on the size of your average audio file.
Title: Re: Creating a Smartlist that randomizes complete albums
Post by: sg60 on January 27, 2019, 04:20:18 pm
That actually works really well. Thank you!

In the interest of understanding this better, do you know if there are any resources available regarding using the code to create Smartlists? Until now I've just used the wizard but it feels like the possibilities are greater if you can learn how to utilize the code.
Title: Re: Creating a Smartlist that randomizes complete albums
Post by: swiv3d on January 27, 2019, 04:35:13 pm
Search the wiki for expression language and the like. Here is a good place to start:
https://wiki.jriver.com/index.php/Search_Language
It really is a case of going through the wiki and any examples you can find in the forums. Then have a bash at some easy ones and gradually make them more complex. I'm still at the beginners stage!
Title: Re: Creating a Smartlist that randomizes complete albums
Post by: sg60 on January 27, 2019, 07:08:40 pm
That’s good advice. Thanks for your help.