INTERACT FORUM

Please login or register.

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

Author Topic: Need to automate the refresh of smartlists  (Read 2613 times)

johnp

  • World Citizen
  • ***
  • Posts: 145
  • let your 'Yes' be 'Yes,' and your 'No,' 'No'
Need to automate the refresh of smartlists
« on: February 18, 2008, 11:10:32 pm »

Is there any way to automate the refresh of smartlists?  I can send messages from Girder or control from command line.  I'll take anything at this point.

Thanks
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41971
  • Shoes gone again!
Re: Need to automate the refresh of smartlists
« Reply #1 on: February 19, 2008, 08:27:10 am »

If you're looking at it, there are several ways:

1) Simulate an F5.
2) Run MC12.exe /MCC 22007
3) Post the MCC command MCC_REFRESH

Logged
Matt Ashland, JRiver Media Center

johnp

  • World Citizen
  • ***
  • Posts: 145
  • let your 'Yes' be 'Yes,' and your 'No,' 'No'
Re: Need to automate the refresh of smartlists
« Reply #2 on: February 19, 2008, 08:56:59 am »

I tried solution #2; Works like a champ!!!  I don't know why I didn't ask this sooner, it's been nagging at me for a while now.  As usual, you da man!!

Thanks,

John
Logged

johnp

  • World Citizen
  • ***
  • Posts: 145
  • let your 'Yes' be 'Yes,' and your 'No,' 'No'
Re: Need to automate the refresh of smartlists
« Reply #3 on: March 12, 2008, 09:52:12 pm »

Hi Matt,

Is there a way to do this from the automation SDK?  Markus K. (who you've met) is trying to do this under VB6 dev environment.

Thanks,

John
Logged

johnp

  • World Citizen
  • ***
  • Posts: 145
  • let your 'Yes' be 'Yes,' and your 'No,' 'No'
Re: Need to automate the refresh of smartlists
« Reply #4 on: March 17, 2008, 08:40:08 pm »

Just wanted to bump this to see if I could get an answer???

Thanks.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41971
  • Shoes gone again!
Re: Need to automate the refresh of smartlists
« Reply #5 on: March 17, 2008, 09:06:49 pm »

Hi Matt,

Is there a way to do this from the automation SDK?  Markus K. (who you've met) is trying to do this under VB6 dev environment.

Thanks,

John

The automation SDK allows getting data out of Media Center, but does not allow controlling the user interface.

For that, you'll have to post / send MCC commands.
Logged
Matt Ashland, JRiver Media Center

johnp

  • World Citizen
  • ***
  • Posts: 145
  • let your 'Yes' be 'Yes,' and your 'No,' 'No'
Re: Need to automate the refresh of smartlists
« Reply #6 on: March 17, 2008, 09:12:03 pm »

Hmmm,  so this control is different than say loading a play list, or using play, pause, stop etc.??  Because I know we can do those sorts of things.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41971
  • Shoes gone again!
Re: Need to automate the refresh of smartlists
« Reply #7 on: March 17, 2008, 09:24:25 pm »

My understanding is that you're trying to refresh the active view of a smartlist.  The only way to do this is with MCC commands.

You can ask a smartlist for files using automation, but this won't change what the user sees.

Just let me know if I'm missing the boat.
Logged
Matt Ashland, JRiver Media Center

johnp

  • World Citizen
  • ***
  • Posts: 145
  • let your 'Yes' be 'Yes,' and your 'No,' 'No'
Re: Need to automate the refresh of smartlists
« Reply #8 on: March 17, 2008, 09:34:41 pm »

OK I think I see what is going on.  It seems that when we ask for a smartlist for files without the UI re-fresh, we just keep getting the same old files without new smartlist rules being re-applied each time.  Perhaps the error is in how we are asking for the files?  We are not really interested in what the UI is doing, but can interact with it if that's the only option.  That said, what would be ideal is if we could ask for smartlist files and get the rules reapplied before the list is generated.  Is there a way to do that?

Thanks,
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41971
  • Shoes gone again!
Re: Need to automate the refresh of smartlists
« Reply #9 on: March 17, 2008, 09:48:03 pm »

For performance, a smartlist is evaluated then cached.

It is reevaluated after a user switches views or does a refresh.

I don't think there's a way to force a refresh from automation.

You _can_ do a search pMJ->Search(...enter rule here...) to get a set of files.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up