INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Windows => Topic started by: tzr916 on October 20, 2018, 01:30:03 pm

Title: SOLVED: How to kick off Server Auto Import from any (other) PC?
Post by: tzr916 on October 20, 2018, 01:30:03 pm
Right now I have a button in theater view that performs Server auto import on demand - C:\Windows\System32\MC24.exe /MCC 23020

Obviously that theater view button on Clients does nothing for the Server. So how can I kick off Server auto import without going to the Server and selecting that button? Is there a way to direct that command line to the Server IP or something?

Here's an example of the problem - I add 20 files to the folder that the MC Server is watching. It picks up 18 or 19 of them right away, but the last one or two are not picked up unless I perform an auto import manually. Or if I add my own cover art file for something, it wont' get picked up until I do a manual auto import. Etc...
Title: Re: How to kick off Server Auto Import from any (other) PC?
Post by: mattkhan on October 20, 2018, 02:02:05 pm
There is an MCC command in mcws you should be able to use - https://wiki.jriver.com/index.php/Web_Service_Interface
Title: Re: How to kick off Server Auto Import from any (other) PC?
Post by: tzr916 on October 20, 2018, 02:57:19 pm
Thanks. I see:
Quote
Import
         Imports files from a folder.
         Parameters:
            Path: The path to search for files. (default: )
            Block: Whether the import should finish before the function returns. (default: 0)
         Response:
         Examples:
http://ServerIP:52199/MCWS/v1/Library/Import?Block=0

But it looks like that is not really an Auto Import. All this can do is import files from a directory. But it doesn't perform any of the other functions that come along with an auto import, like tagging or getting cover art, etc.

Is there something more that I'm not getting?

Title: Re: How to kick off Server Auto Import from any (other) PC?
Post by: mattkhan on October 20, 2018, 03:01:50 pm
I mean the MCC endpoint which means you can send that same 23020 but via mcws
Title: Re: How to kick off Server Auto Import from any (other) PC?
Post by: DJLegba on October 20, 2018, 03:09:26 pm
Another approach would be to address the reason for the initial partial import. This used to happen to me regularly. My NUC doesn't have WiFi so I was using an ethernet over powerline adapter, which was really slow. Copying a folder from my PC to the NUC took long enough that MC's auto-import task was finding new files before the copy was complete. I made some network changes that allowed me to run a cable to the NUC and now that I have a gigabit ethernet connection I never get partial imports.
Title: Re: How to kick off Server Auto Import from any (other) PC?
Post by: tzr916 on October 20, 2018, 03:22:16 pm
Server is hard wired GB...
Wondering if I can do something similar to how I can reboot my Silicon Dust tuners with a windows shortcut:
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 192.168.1.xx set /sys/restart self
Title: Re: How to kick off Server Auto Import from any (other) PC?
Post by: tzr916 on October 20, 2018, 03:24:11 pm
I mean the MCC endpoint which means you can send that same 23020 but via mcws
Thanks, need help with that please... I type something into a browser address? or make a shortcut or?
Title: Re: How to kick off Server Auto Import from any (other) PC?
Post by: mattkhan on October 20, 2018, 03:53:48 pm
Thanks, need help with that please... I type something into a browser address? or make a shortcut or?
this one so something like http://myserver:52199/MCWS/v1/Control/MCC?Command=23020

Code: [Select]
  MCC
         Perform a Media Core Command (MCC).
         Parameters:
            Command: The command (an integer value from the MC_COMMANDS enumeration; visit DevZone for the command list). (default: )
            Parameter: The parameter to the command. (default: 0)
            Block: 0: return immediately (command is posted and processed asynchronously); 1: wait for the command to finish before returning. (default: 0)
            Zone: The zone the command is targetted for. (default: -1)
            ZoneType: The type of value provided in 'Zone' (ID: zone id; Index: zone index; Name: zone name). (default: ID)
         Response:
         Examples:
            Play / pause
            Shuffle Playing Now
Title: Re: How to kick off Server Auto Import from any (other) PC?
Post by: tzr916 on October 20, 2018, 04:27:02 pm
Got it. That works perfectly. Thanks so much!