CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Got a program that plays well with SABnzbd? Share it here!

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby generator » July 15th, 2010, 6:38 pm

I'm trying to modify an update script  for Sick Beard that I found here:

http://www.ainer.org/?p=747

Since my scripting experience isn't that great, I wonder what I'm doing wrong?

I've pasted my script here;

http://pastebin.com/QN55NBrj

I hope someone can take a look at it!
generator
Newbie
Newbie
 
Posts: 12
Joined: December 10th, 2009, 8:01 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby nomar383 » July 15th, 2010, 6:58 pm

generator wrote:I'm trying to modify an update script  for Sick Beard that I found here:

http://www.ainer.org/?p=747

Since my scripting experience isn't that great, I wonder what I'm doing wrong?

I've pasted my script here;

http://pastebin.com/QN55NBrj

I hope someone can take a look at it!


Definitely not going to work. That has all sorts of SickBeard specific lines. I could write one if I knew how to shutdown the app from the command line reliably. It's really just a matter of doing a git-pull and restarting the app.

EDIT: I take it back, that's pretty close. I'm trying to make it work now :)
Last edited by nomar383 on July 15th, 2010, 7:52 pm, edited 1 time in total.
SABCommand for iPad Developer
SABConnect for Safari 5 Developer

Bug Tracking:
http://redmine.kalenhansen.com

Twitter:
http://twitter.com/SABCommand
User avatar
nomar383
Release Testers
Release Testers
 
Posts: 210
Joined: April 14th, 2010, 2:34 am
Location: Rexburg, ID

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby generator » July 15th, 2010, 7:45 pm

Ok thanx, I guess I'll just give up then.

Something else:When renaming the files, the output folder has the owner set to root. Now I can't access it. Is there any way to fix this?

[edit]I think I fixed it by changing root to my username in initd file.[/edit]
Last edited by generator on July 15th, 2010, 8:21 pm, edited 1 time in total.
generator
Newbie
Newbie
 
Posts: 12
Joined: December 10th, 2009, 8:01 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby nomar383 » July 15th, 2010, 8:26 pm

generator wrote:Ok thanx, I guess I'll just give up then.

Something else:When renaming the files, the output folder has the owner set to root. Now I can't access it. Is there any way to fix this?

[edit]I think I fixed it by changing root to my username in initd file.[/edit]


I'm slowly trying to make this work on my mac server now haha
SABCommand for iPad Developer
SABConnect for Safari 5 Developer

Bug Tracking:
http://redmine.kalenhansen.com

Twitter:
http://twitter.com/SABCommand
User avatar
nomar383
Release Testers
Release Testers
 
Posts: 210
Joined: April 14th, 2010, 2:34 am
Location: Rexburg, ID

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby nomar383 » July 15th, 2010, 9:47 pm

Here is a link to my Mac (maybe Linux?) CouchPotato update script:
http://dl.dropbox.com/u/7831344/update_couch_potato.sh

You need:
1. wget and git installed (I used macports to install on my box, but there are other ways)
2. may need to chmod the permissions
3. change the settings to your own
4. exit the terminal after the update

You can add this as a cron job if you want to do it automatically

Tested on OS X 10.6.3

EDIT: I updated the script to v1.1. It will no longer try to parse the CouchPotato settings file, just hard code your settings in. This means it will probably work on Linux too, but I haven't tested it.
Last edited by nomar383 on July 16th, 2010, 9:45 pm, edited 1 time in total.
SABCommand for iPad Developer
SABConnect for Safari 5 Developer

Bug Tracking:
http://redmine.kalenhansen.com

Twitter:
http://twitter.com/SABCommand
User avatar
nomar383
Release Testers
Release Testers
 
Posts: 210
Joined: April 14th, 2010, 2:34 am
Location: Rexburg, ID

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby generator » July 16th, 2010, 7:50 am

I'm getting to love this app more and more! Love the name CouchPotato!

Just one thing left: when renaming/moving a movie it leaves the folder with some files (like samples) in it. Shouldn't CouchPotato delete these? It gets real cluttered real fast.

And I keep getting this error (related with the above problem?)
10:51:58,874 ERROR [app.lib.cron.cronRenamer] Tried to clean-up download folder, but "/home/mediacenter/Downloads/sabnzbd/complete/Movies" isn't empty.

You mentioned earlier that this should be fixed (running the latest version)?
generator
Newbie
Newbie
 
Posts: 12
Joined: December 10th, 2009, 8:01 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby RuudBurger » July 16th, 2010, 7:53 am

I keep a list of "save to delete" files (by extention that is). if you find a file that isn't important. let me know, so I can add it to the list.
Will check out the deletion of the sample file.
Last edited by RuudBurger on July 16th, 2010, 7:57 am, edited 1 time in total.
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum
RuudBurger
Sr. Member
Sr. Member
 
Posts: 303
Joined: July 2nd, 2010, 7:11 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby generator » July 16th, 2010, 7:58 am

Maybe a checkbox that enables the removal of all leftover files? I want to download the movie, and don't really care about all the other files.

We can never become true Couch Potates if we have to manually cleanup the download folders every once in a while! Don't you agree? ;)

Thanks for the quick response!

[edit]It sometimes leaves sample .mkv files and .sfv files. Those are the ones I noticed so far[edit]
Last edited by generator on July 16th, 2010, 8:02 am, edited 1 time in total.
generator
Newbie
Newbie
 
Posts: 12
Joined: December 10th, 2009, 8:01 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby RuudBurger » July 16th, 2010, 7:59 am

Hehe true. Good idea.
Will check for file size though. not want to delete anything above 100MB :P
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum
RuudBurger
Sr. Member
Sr. Member
 
Posts: 303
Joined: July 2nd, 2010, 7:11 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby generator » July 16th, 2010, 8:13 am

@RuudBurger
Great!

@Nomar
Any luck yet with the update script? Will you let us know when you've got it working?
generator
Newbie
Newbie
 
Posts: 12
Joined: December 10th, 2009, 8:01 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby nomar383 » July 16th, 2010, 10:07 am

generator wrote:@RuudBurger
Great!

@Nomar
Any luck yet with the update script? Will you let us know when you've got it working?


It is working, look a few posts above :)
SABCommand for iPad Developer
SABConnect for Safari 5 Developer

Bug Tracking:
http://redmine.kalenhansen.com

Twitter:
http://twitter.com/SABCommand
User avatar
nomar383
Release Testers
Release Testers
 
Posts: 210
Joined: April 14th, 2010, 2:34 am
Location: Rexburg, ID

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby RuudBurger » July 16th, 2010, 11:09 am

New release with some bugfixes and NZBMatrix support.
New Windows build will be up in a few minutes.
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum
RuudBurger
Sr. Member
Sr. Member
 
Posts: 303
Joined: July 2nd, 2010, 7:11 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby jonaskp » July 16th, 2010, 11:31 am

This is looking very great.
Is there any update on more renaming options? Because currently I have to manually rename my movies to include quality options, which breaks CouchPotatos ability to keep track on them.


Also an ability to remove files from the "Snatched" and "Downloaded" list would be nice, since I currently have a long list of movies that I have renamed myself which just stays in the "snatch"-list.

Loving the name CouchPotato by the way!
jonaskp
Newbie
Newbie
 
Posts: 37
Joined: July 5th, 2010, 7:07 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby RuudBurger » July 16th, 2010, 3:52 pm

You can use , but it is not tested that well yet ;)
CouchPotato - Automatic Movie Downloader
For bugs & feature request go to Lighthouse. For questions & problems go to our support forum
RuudBurger
Sr. Member
Sr. Member
 
Posts: 303
Joined: July 2nd, 2010, 7:11 am

Re: CouchPotato - Automatic Movie Downloader via NZB & Torrents!

Postby nomar383 » July 16th, 2010, 4:33 pm

@RuddBurger

Will you be integrating auto-update soon? Or an update button? That would be awesome :)

If not, it may be useful to post the links to my Mac update script and generator's Linux update script in the OP.
SABCommand for iPad Developer
SABConnect for Safari 5 Developer

Bug Tracking:
http://redmine.kalenhansen.com

Twitter:
http://twitter.com/SABCommand
User avatar
nomar383
Release Testers
Release Testers
 
Posts: 210
Joined: April 14th, 2010, 2:34 am
Location: Rexburg, ID

PreviousNext

Return to Third-party Addons