INTERACT FORUM

More => Old Versions => JRiver Media Center 21 for Mac => Topic started by: Afrosheen on February 13, 2016, 10:33:53 am

Title: Using Scheduler to update Smartlists?
Post by: Afrosheen on February 13, 2016, 10:33:53 am
Is there a way to configure the Scheduler service to essentially "refresh" a specific smartlist, or a group of smartlists?

I've made ten or so random albums smartlists for each genre I hve.  What I would like to do is to have these smartlists refreshed each week since I can't refresh them when I play an album on JRemote.
Title: Re: Using Scheduler to update Smartlists?
Post by: glynor on February 13, 2016, 05:29:57 pm
MCC_REFRESH (22007) seems to work for me.

So you'd want to schedule a web command. You could use a simple shell script, and then schedule it with Automator and Calendar, Hazel (https://www.noodlesoft.com/hazel.php), Launch Control (http://www.soma-zone.com/LaunchControl/), cron/launchd, or Cocktail (http://www.maintain.se/cocktail/) or something.

Code: [Select]
#!/bin/bash
curl -- "http://username:password@localhost:52199/MCWS/v1/Control/MCC?Command=22007"
echo -e "\n\nstatus returned was: $?"

I'm pretty sure that would do it. You could schedule it every day, or whatever you want.

If that doesn't work, you could script it to restart using this instead:
http://localhost:52199/MCWS/v1/Control/CommandLine?Arguments=/Restart

But MCC_REFRESH worked for me when I just tested briefly.
Title: Re: Using Scheduler to update Smartlists?
Post by: blgentry on February 13, 2016, 05:46:55 pm
Very nice Glynor.  Seems to work correctly.

Brian.
Title: Re: Using Scheduler to update Smartlists?
Post by: Afrosheen on February 13, 2016, 09:38:28 pm
This is perfect!  Thanks for delivering the goods Glynor!