nzbname in postprocessing

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
cytec
Newbie
Newbie
Posts: 17
Joined: April 9th, 2013, 9:55 am

nzbname in postprocessing

Post by cytec »

Hi,

ive just wanted to ask if there is any way of getting the nzbname inside a postprocessing script.

when i add a new file to sab over the url api like this:

Code: Select all

http://192.168.0.1:8080/api?nzbname=Game.of.Thrones.S03E02.720p.HDTV.x264-IMMERSE
&name=http%3A%2F%2Fblabla.bla%2Fblabla%2F87188375%2F1393341-FULL-a.b.teevee-Game.of.Thrones.S03E02.720p.HDTV.x264-IMMERSE-0145-game.of.thrones.s03e02.720p.hdtv.x264-immerse.nfo.nzb&cat=serien&priority=1&mode=addurl
the postprocessing for this file would be called with the name of the downloaded nzb which is in this case: "game.of.thrones.s03e02.720p.hdtv.x264-immerse.nfo.nzb"
Seems like Sabnzbd doesn't take the nzbname value and download the nzb with that name, nor provides the nzbname in any other way...

thats sad, because i send the name of the nzb file back to my database, where i wrote down the nzbname from the addurl request (Game.of.Thrones.S03E02.720p.HDTV.x264-IMMERSE) cause im not able to get the correct nzb name from the provider.

if im processing this download now, i get an different nzb name from sab (game.of.thrones.s03e02.720p.hdtv.x264-immerse.nfo.nzb) and cant find that in my local database which causes me to redownload the same release over and over again...

is there any way that sab will save the nzb to the given nzbname or at least use nzbname as name of the nzb file in postprocessing?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: nzbname in postprocessing

Post by shypike »

The "nzbname" parameter will determine the final folder name of the result.
That will be the value passed in parameter 3.
Post Reply