Media Companion
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Media Companion

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

 

 Command line options

Go down 
+8
dbareis
Josha
Fire69
jetskijoe
DrDDT
mnk6
billyad2000
herg
12 posters
AuthorMessage
herg
New User
New User



Posts : 1
Join date : 2008-10-23

command - Command line options Empty
PostSubject: Command line options   command - Command line options Icon_minitimeThu Oct 23, 2008 4:11 pm

Specifically, what I'd like to be able to do is to run a scheduled task that will start XBMC MC, scan for new items, then close XBMC MC.
Back to top Go down
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeFri Oct 24, 2008 1:22 am

I'll look at adding command line functionality at some point in the future.
Back to top Go down
http://billyad2000.co.uk
mnk6
New User
New User



Posts : 8
Join date : 2008-09-23

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeFri Oct 31, 2008 12:06 am

Add another request for this
Back to top Go down
DrDDT
Junior Member
Junior Member



Posts : 14
Join date : 2009-03-16

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeTue Mar 24, 2009 2:04 pm

I also would like this feature.
Back to top Go down
jetskijoe
New User
New User



Posts : 8
Join date : 2009-01-14

command - Command line options Empty
PostSubject: I would also like this feature :)   command - Command line options Icon_minitimeTue Mar 24, 2009 4:40 pm

I would also like this feature Smile
Back to top Go down
Fire69
Junior Member
Junior Member



Posts : 22
Join date : 2009-03-23

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeTue May 05, 2009 1:57 pm

I know you're rewriting MC right now, but still, I'm also adding my vote here. Wink
This would be an awesome feature!
Back to top Go down
Josha
New User
New User



Posts : 3
Join date : 2009-05-05

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeTue May 05, 2009 9:25 pm

This post is maybe a bit unnessary but I also request for this feature.

Would't it be nice to make an automatic script after Sabznbd finished his downloads Smile
Back to top Go down
dbareis
Senior Member
Senior Member
dbareis


Posts : 223
Join date : 2008-12-08

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeWed May 06, 2009 3:17 am

Josha wrote:
This post is maybe a bit unnessary but I also request for this feature.

Would't it be nice to make an automatic script after Sabznbd finished his downloads Smile

and me
Back to top Go down
http://dennisbareis.com
Flook
New User
New User



Posts : 7
Join date : 2009-03-20

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeFri Jun 19, 2009 6:27 pm

Another vote. I run all my other library and renaming apps via command line automatically when torrents finish downloading and would love to add this to it. Right now I use an autoit script but it's not very pretty.
Back to top Go down
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeMon Jul 06, 2009 1:21 am

Basic command line option "sq" has been added to version 3.031 - see announcements.

"\media companion.exe sq"

will start media companion minimized, scan for new movies, then exit.
Back to top Go down
http://billyad2000.co.uk
Flook
New User
New User



Posts : 7
Join date : 2009-03-20

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeSun Oct 18, 2009 6:33 am

I'm just wondering if there will be a command line for scanning new TV shows in the near future. That's the only thing I'm missing right now for my perfect automated HTPC setup.

Thanks for the great software.
Back to top Go down
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeSun Oct 18, 2009 10:47 am

Auto scanning of tv shows will never happen since user input is required.

New episodes added to exisiting tv shows on the other hand will be added to the command line options, although it will likely be a few weeks away.
Back to top Go down
http://billyad2000.co.uk
Flook
New User
New User



Posts : 7
Join date : 2009-03-20

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeTue Oct 20, 2009 3:22 pm

Perfect. Thanks for the reply. Existing TV shows is exactly what I'm looking for.
Back to top Go down
Fire69
Junior Member
Junior Member



Posts : 22
Join date : 2009-03-23

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeThu Jan 07, 2010 9:41 pm

Hey billy,

any news on the ability to scan for new episodes? Smile
Back to top Go down
rausch101
Junior Member
Junior Member



Posts : 46
Join date : 2008-10-01

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeThu Jan 14, 2010 5:11 am

This works great for movies. Another +1 for tv episodes

This is still the best at what it does and I've tried nearly all of the others. Nice job.
Back to top Go down
marked
Junior Member
Junior Member



Posts : 24
Join date : 2010-04-13

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeTue Apr 13, 2010 2:26 am

Command-line driven Media Companion

Would it be possible to have command line access to some functions, e.g.,
-scrape-movies scrape new movies (I see this is sq)
-scrape-eps scrape new episodes
-html-movie "template-title" "movielisting.html"
movie html output

then it's possible to do the following
schtasks /create /ru <myusername> /sc DAILY /TN "MC Movie HTML output" /ST 03:00 /TR "'c:\users\<myusername>\apps\mc\media companion.exe' -html-movie \"Movie Title\" "

Internally I'm not sure how mixed the gui code is in the functions but in very mixed psuedo-code if you split out the functions, it shouldn't matter whether it's a click on a button or a cli switch. However if very mixed it could be a painful rewrite/restructure.
I think there would also have to be a way of reporting errors, maybe checking for a cli generated logfile at MC GUI start??

Regards,
Mark

Code:

if argv[] >0 then {
 set NOGUI
};

if opts[0] == "--help" or "-h" or "?" or "h" then {
  print "highly useful media companion help info\n";
  exit();
  }

... 
 getConfig();  # setup MC, read in config, etc.
...
 c

case:
  opts[0] == "html-movie" {
    htmlOutput(opts[1],opts[2],errorlog);
    };
 
case:
  opts[0] == "scrape-movie" {
    scrapeMovie("moviepath".$MovieName,errorlog);
    };

function guiSetup();
    case scrapeMovie.Button.click: scrapeMovie("moviepath".$MovieName,gui);
    case ...
Back to top Go down
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeTue Apr 13, 2010 3:37 am

Every time this gets near the top of my list some other feature seems to distract me.

It would be fairly simple to implement, MC can already start without the GUI, and the TV Scraper, like the movie scraper runs on its own thread, completely independant of the GUI, it's just a matter of MC starting, loading the existing config and cache files, then starting the search for new episodes thread.
I will have to have a little think about the syntax structure though.

I think the help for the commandline would also be fairly straight forward.

BTW, MC is written with VB and not C#, although your sample code is still appreciated.
Back to top Go down
http://billyad2000.co.uk
marked
Junior Member
Junior Member



Posts : 24
Join date : 2010-04-13

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeTue Apr 13, 2010 3:51 am

billyad2000 wrote:

BTW, MC is written with VB and not C#, although your sample code is still appreciated.

It was just pseudo code I think there was perl, python and C in there. I haven't done enough C# to remember, as it is one of my read-and-possibly-modify languages.

Mark
Back to top Go down
rausch101
Junior Member
Junior Member



Posts : 46
Join date : 2008-10-01

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeTue Apr 20, 2010 7:08 am

anxiously awaiting
Back to top Go down
Scrumpy
New User
New User



Posts : 1
Join date : 2010-01-07

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeThu Apr 22, 2010 3:24 am

billyad2000 wrote:
Auto scanning of tv shows will never happen since user input is required.

New episodes added to exisiting tv shows on the other hand will be added to the command line options, although it will likely be a few weeks away.

Hi,
I have searched through the fourms and been through quite a few release notes to see if command line options for episodes for exisiting tv shows has been added with no luck. Is there any word on this option?

Cheers for such an awesome program

Scrumpy
Back to top Go down
billyad2000
Admin
billyad2000


Posts : 1326
Join date : 2008-09-20

command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitimeThu Apr 22, 2010 2:08 pm

Been taking a close look at this, and have encountered a couple of issues.

To get the best of command line MC would really need to be a 'Console Application', which it certainly is not. The best I could do would be have MC start minimised or invisible, do the work then exit.

A better option, from my experiments would be to create a seperate small console application that sits in the MC folder and can share the config and libraries etc.

Since this seems to be the thing highest on users lists at the moment then I will concentrate on this.

I have a uni assignment that needs to be done this week and its taking most of my time, so I am looking at the week after for the initial build of this feature.
Back to top Go down
http://billyad2000.co.uk
Sponsored content





command - Command line options Empty
PostSubject: Re: Command line options   command - Command line options Icon_minitime

Back to top Go down
 
Command line options
Back to top 
Page 1 of 1
 Similar topics
-
» MC Command Line
» rebuild DB from command line
» TV Shows Command Line
» Sort options
» TV Renaming: Additional Options

Permissions in this forum:You cannot reply to topics in this forum
Media Companion :: Media Companion :: Feature Requests-
Jump to: