INTERACT FORUM

More => Old Versions => Media Center 16 (Development Ended) => Topic started by: gvanbrunt on August 17, 2011, 07:03:38 pm

Title: Import particular folder via API
Post by: gvanbrunt on August 17, 2011, 07:03:38 pm
Is there any way to import a particular folder (only) via the API, command or Web Service?
Title: Re: Import particular folder via API
Post by: MrC on August 17, 2011, 07:52:06 pm
The MC command line option /Import (and its variants) are described to only import a single file.  If this is correct, and I have not verified it, a script could be written to import an entire folder easily enough.

http://wiki.jriver.com/index.php/The_Command_Line (http://wiki.jriver.com/index.php/The_Command_Line)
Title: Re: Import particular folder via API
Post by: gvanbrunt on August 17, 2011, 09:28:39 pm
Thanks! Not ideal but usable. It would be nice if it offered a whay to duplicate the "import a single folder" feature.

I wanted to run an import while in Theater view. I'll just write a script to import all the files. Might take some thinking though as it may import junk as well such as txt files and whatnot.
Title: Re: Import particular folder via API
Post by: MrC on August 17, 2011, 10:00:56 pm
OK, perhaps not necessary after all.

   mc16.exe /import <foldername>

will import a folder's contents.

I'll update the wiki.

[edit: wiki updated; should be clearer now that /import, etc. can import one or more files/folders]
Title: Re: Import particular folder via API
Post by: gvanbrunt on August 18, 2011, 05:14:20 pm
Excellent. Thanks!