| Command line options | |
|
+8dbareis Josha Fire69 jetskijoe DrDDT mnk6 billyad2000 herg 12 posters |
Author | Message |
---|
herg New User
Posts : 1 Join date : 2008-10-23
| Subject: Command line options Thu 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. | |
|
| |
billyad2000 Admin
Posts : 1326 Join date : 2008-09-20
| Subject: Re: Command line options Fri Oct 24, 2008 1:22 am | |
| I'll look at adding command line functionality at some point in the future. | |
|
| |
mnk6 New User
Posts : 8 Join date : 2008-09-23
| Subject: Re: Command line options Fri Oct 31, 2008 12:06 am | |
| Add another request for this | |
|
| |
DrDDT Junior Member
Posts : 14 Join date : 2009-03-16
| Subject: Re: Command line options Tue Mar 24, 2009 2:04 pm | |
| I also would like this feature. | |
|
| |
jetskijoe New User
Posts : 8 Join date : 2009-01-14
| Subject: I would also like this feature :) Tue Mar 24, 2009 4:40 pm | |
| I would also like this feature | |
|
| |
Fire69 Junior Member
Posts : 22 Join date : 2009-03-23
| Subject: Re: Command line options Tue May 05, 2009 1:57 pm | |
| I know you're rewriting MC right now, but still, I'm also adding my vote here. This would be an awesome feature! | |
|
| |
Josha New User
Posts : 3 Join date : 2009-05-05
| Subject: Re: Command line options Tue 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 | |
|
| |
dbareis Senior Member
Posts : 223 Join date : 2008-12-08
| Subject: Re: Command line options Wed 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 and me | |
|
| |
Flook New User
Posts : 7 Join date : 2009-03-20
| Subject: Re: Command line options Fri 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. | |
|
| |
billyad2000 Admin
Posts : 1326 Join date : 2008-09-20
| Subject: Re: Command line options Mon 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. | |
|
| |
Flook New User
Posts : 7 Join date : 2009-03-20
| Subject: Re: Command line options Sun 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. | |
|
| |
billyad2000 Admin
Posts : 1326 Join date : 2008-09-20
| Subject: Re: Command line options Sun 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. | |
|
| |
Flook New User
Posts : 7 Join date : 2009-03-20
| Subject: Re: Command line options Tue Oct 20, 2009 3:22 pm | |
| Perfect. Thanks for the reply. Existing TV shows is exactly what I'm looking for. | |
|
| |
Fire69 Junior Member
Posts : 22 Join date : 2009-03-23
| Subject: Re: Command line options Thu Jan 07, 2010 9:41 pm | |
| Hey billy, any news on the ability to scan for new episodes? | |
|
| |
rausch101 Junior Member
Posts : 46 Join date : 2008-10-01
| Subject: Re: Command line options Thu 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. | |
|
| |
marked Junior Member
Posts : 24 Join date : 2010-04-13
| Subject: Re: Command line options Tue 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 ... | |
|
| |
billyad2000 Admin
Posts : 1326 Join date : 2008-09-20
| Subject: Re: Command line options Tue 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. | |
|
| |
marked Junior Member
Posts : 24 Join date : 2010-04-13
| Subject: Re: Command line options Tue 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 | |
|
| |
rausch101 Junior Member
Posts : 46 Join date : 2008-10-01
| Subject: Re: Command line options Tue Apr 20, 2010 7:08 am | |
| | |
|
| |
Scrumpy New User
Posts : 1 Join date : 2010-01-07
| Subject: Re: Command line options Thu 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 | |
|
| |
billyad2000 Admin
Posts : 1326 Join date : 2008-09-20
| Subject: Re: Command line options Thu 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. | |
|
| |
Sponsored content
| Subject: Re: Command line options | |
| |
|
| |
| Command line options | |
|