Media Companion

Discussion and development board for the program Media Companion.
 
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  

Share | 
 

 MC Command Line

View previous topic View next topic Go down 
AuthorMessage
billyad2000
Admin
avatar

Posts : 1326
Join date : 2008-09-20

PostSubject: MC Command Line   Fri Apr 23, 2010 1:42 am

As i've mentioned I have been looking at adding a useful command line method to Media Companion and have spent a several hours playing with this this evening.

In order to avoid the need for extensive rewriting of the application I have written a small console application that can perform the neccesary basic tasks. The program still needs to be located in the MC folder so that it has access to all the same libraries, preferences, and cache files.

The application is called 'mc_com' and at the moment is about 150kb, it's only single threaded and although it uses much the same routines as the main MC program the scraping appears to be considerably faster.

The command line functionality so far is
'mc_com -m -e -p profilename'
-m Scrape movies
-e Scrape episodes
-p with profile (profilename) if -p is not used then the default profile will be used.

eg
'mc_com -m -p Billys' will search for new movies using the folders and settings in the 'Billys' profile
'mc_com -m -e' will search and scrape new movies and episodes in the default profile.

'mc_com' or 'mc_com help'
will display the above info in the console.

Both methods update used cache files accordingly so they will be listed within MC when it is next run, and the console outputs progress.

I intend to make this available this weekend and I may have time to add some additional features, so if you have any ideas or thoughts then this is the thread to air them.

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/


Last edited by billyad2000 on Sun Apr 25, 2010 8:22 pm; edited 1 time in total
Back to top Go down
View user profile http://billyad2000.co.uk
StormyKnight
VIP
VIP


Posts : 556
Join date : 2008-10-08
Location : Australia

PostSubject: Re: MC Command Line   Fri Apr 23, 2010 4:42 am

The only other thing would be quite mode to display nothing & without the quite mode to display what movies/episodes have been successfully added.

Cheers
Back to top Go down
View user profile
marked
Junior Member
Junior Member


Posts : 24
Join date : 2010-04-13

PostSubject: Re: MC Command Line   Fri Apr 23, 2010 11:56 am

Quote :
The command line functionality so far is
'mc_com -m -e -p profilename'
-m Scrape movies
-e Scrape episodes
-p with profile (profilename) if -p is not used then the default profile will be used.

to be clear does this only scrape new movies/episodes?

-m scrape movies (everything)
-mp scrape movie poster
-mf scrape movie fanart
-mb scrape movie banner
-ma scrape movie actors
-mn scrape movie .nfo

similarly for episodes

-h <HTMLtemplate>or <HTML template Title> <path\filename>
<htmltemplate> is the html Template filename
<html template title> is the title that MC uses in the menu selection

as StormyKnight says, a log file, or a popup of what has been added on MC startup

Regards,
Mark
Back to top Go down
View user profile
DrDDT
Junior Member
Junior Member


Posts : 14
Join date : 2009-03-16

PostSubject: Re: MC Command Line   Fri Apr 23, 2010 3:27 pm

Please define exit codes, so the command line version can be used in batchfiles.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: MC Command Line   

Back to top Go down
 
MC Command Line
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Running Selenium Test cases as JUnit tests using Command Line
» Selenium server command options while starting server.
» TestNG / Ant Help
» Shortcut to run test case with selenium ide
» [HOW TO] Integrate .Net Framework 3.5 in Windows 8 using WinReducer 8 or command line

Permissions in this forum:You cannot reply to topics in this forum
Media Companion :: Media Companion :: General Discussion-
Jump to: