Page 1 of 1

Pause some nzb's from watch dir

Posted: February 1st, 2011, 10:11 am
by Despite
I'm brainstorming ideas for how to get sabnzbd to start certain nzb's paused.  Ideally, I think I'd like to be able to put a tag on the filename, like you can do to set rar passwords.  That way, categories would still work.  Is anything like this possible?  Or am I barking up the wrong tree?

For context, I'm working on a script that will check the articles in an nzb to see if it's complete before downloading.  sab doesn't have preprocessing scripts, so this would have to run before copying the nzb to the watch dir. 

But, I don't have many good ideas for what to do if the nzb fails the completeness check.  I could just not give it to sab.  But then it's a mystery -- "What happened to my nzb?  Should I d/l it again? etc"  Better to me would be to have it in sab, but marked as bad, or paused or something.  Then you could decide to find another nzb, add an nzb with pars (in future sab version), or wait until articles have propagated.

Re: Pause some nzb's from watch dir

Posted: February 1st, 2011, 2:37 pm
by sander
Maybe you should consider the SABnzbd API? It gives you much more control over NZBs: put in queue, pause, etc. See http://wiki.sabnzbd.org/api

@ NZB-pre-checking: a very good idea! What have you implemented so far? And have you seen http://forums.sabnzbd.org/index.php?topic=5074.0 ?


EDIT:

some more API stuff: http://wiki.sabnzbd.org/automation-support

Re: Pause some nzb's from watch dir

Posted: February 1st, 2011, 3:31 pm
by shypike
Release 0.6.0 will have a pre-queue script
and the the pseudo-priority "paused" for RSS entries.

Re: Pause some nzb's from watch dir

Posted: February 2nd, 2011, 8:59 am
by Despite
Great, the additions to 0.6.0 sound like exactly what I'll need.  The api could probably work too -- I could add the nzb, then immediately pause it.

sander, I have seen that script, in fact it was part of my inspiration.  I wanted to write the same thing in Clojure (because it's my current pet language) but I'll have to see how Clojure's startup time affects things.  I may end up rewriting in Python.  Currently, I have it checking each file and outputting a list of filename, complete, and total parts.  Condensing that into a thumbs up/thumbs down should be easy, but figuring out how to deal with .par2 files might be hard.  It seems like people aren't using the same segment size for par2's as for posts, so there isn't a one to one relationship.