Disable re-queue of downloaded NZB files

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
kdbruin
Newbie
Newbie
Posts: 3
Joined: May 30th, 2010, 8:09 am

Disable re-queue of downloaded NZB files

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Disable re-queue of downloaded NZB files

Post 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.
kdbruin
Newbie
Newbie
Posts: 3
Joined: May 30th, 2010, 8:09 am

Re: Disable re-queue of downloaded NZB files

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Disable re-queue of downloaded NZB files

Post 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.
kdbruin
Newbie
Newbie
Posts: 3
Joined: May 30th, 2010, 8:09 am

Re: Disable re-queue of downloaded NZB files

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Disable re-queue of downloaded NZB files

Post 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.
Post Reply