Page 1 of 1

Disable re-queue of downloaded NZB files

Posted: May 30th, 2010, 8:12 am
by kdbruin
I use binsearch to get a set of NZB files that I want to download. I've just upgraded from 4.x to 5.x and now the NZB files are automatically added to the download queue. How can I disable this as I want to have control over what is downloaded and when.

Re: Disable re-queue of downloaded NZB files

Posted: May 30th, 2010, 1:47 pm
by shypike
There currently is no way to stop this.
The idea is that if you choose to download the NZB of an NZB,
you really want to download what the second NZB describes.

Re: Disable re-queue of downloaded NZB files

Posted: May 31st, 2010, 12:27 am
by kdbruin
That is true, but in some situations I want to get the NZB files and download it later because e.g. I don't have enough diskspace left.

Could you point to the code where this is done. I've grep'ed a bit in the code but couldn't really find where this is done.

Re: Disable re-queue of downloaded NZB files

Posted: May 31st, 2010, 1:46 am
by shypike
That's quite easy.
Module sabnzbd/postproc.py.
Replace this line:

Code: Select all

nzb_list = NzbRedirect(tmp_workdir_complete, pp, script, cat, priority=priority)
by:

Code: Select all

nzb_list = []
Make sure the indentation stays the same.

Re: Disable re-queue of downloaded NZB files

Posted: May 31st, 2010, 6:25 am
by kdbruin
Thanks for the info. I will see if I can make a patch to include some configuration item etc to trigger the re-queue of NZB files.

Re: Disable re-queue of downloaded NZB files

Posted: May 31st, 2010, 8:20 am
by shypike
No need for a patch, I can do it in 5 minutes.
That's not the hard part.
We are a bit reluctant to add too many obscure options.