Fail url in post processing script is not single argument

Come up with a useful post-processing script? Share it here!
Post Reply
consec
Newbie
Newbie
Posts: 2
Joined: December 13th, 2015, 8:08 am

Fail url in post processing script is not single argument

Post by consec »

Hi,

I recently wrote a custom postprocessing script that does some cleanup of the download folder, downloads subtitles and moves it to another location. When testing the script, I noticed the following problem: the script does not receive the expected 8 arguments when being called, instead it gets the 7 first arguments as described and the characters of the final argument (the fail url http://wiki.sabnzbd.org/user-scripts) are sent one by one.

So when I just print out the string[] args array (its a windows exe script) I get the following:
2015-12-13 03:08:52.9242|ERROR|The processor is given 95 input values while 8 where expected
2015-12-13 03:08:52.9242|DEBUG|V:\Downloads\Movies\The Search for Santa Paws
2015-12-13 03:08:52.9242|DEBUG|The.Search.For.Santa.Paws.SE.DK.SUBPACK.BluRay-REQ.nzb
2015-12-13 03:08:52.9242|DEBUG|The.Search.For.Santa.Paws.SE.DK.SUBPACK.BluRay-REQ
2015-12-13 03:08:52.9242|DEBUG|
2015-12-13 03:08:52.9242|DEBUG|movie
2015-12-13 03:08:52.9242|DEBUG|alt.binaries.hdtv.x264
2015-12-13 03:08:52.9242|DEBUG|0
2015-12-13 03:08:52.9242|DEBUG|h
2015-12-13 03:08:52.9242|DEBUG|t
2015-12-13 03:08:52.9242|DEBUG|t
2015-12-13 03:08:52.9242|DEBUG|p
2015-12-13 03:08:52.9242|DEBUG|s
2015-12-13 03:08:52.9242|DEBUG|:
2015-12-13 03:08:52.9398|DEBUG|/
2015-12-13 03:08:52.9398|DEBUG|/
2015-12-13 03:08:52.9398|DEBUG|d
2015-12-13 03:08:52.9398|DEBUG|o
2015-12-13 03:08:52.9398|DEBUG|g
2015-12-13 03:08:52.9398|DEBUG|n
2015-12-13 03:08:52.9398|DEBUG|z
2015-12-13 03:08:52.9398|DEBUG|b
2015-12-13 03:08:52.9398|DEBUG|.
...

Does anybody know if this is a known issue. Or if this is maybe an issue of the nzb I downloaded? (Note that this nzb file is not a real movie, just a small subpack for testing purposes).
Thanks!
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Fail url in post processing script is not single argumen

Post by shypike »

If you try the sample script Sample-PostProc.cmd (located in SABnzbd's program folder),
you'll see that the parameters are passed correctly.
It must be something in the exe program.
consec
Newbie
Newbie
Posts: 2
Joined: December 13th, 2015, 8:08 am

Re: Fail url in post processing script is not single argumen

Post by consec »

Hi shypike,

thank you for your response. I did as you suggested, but I fear the script has a similar behaviour as I saw with mine. When I run the script on the same nzb I get the following output (using the standard Sample-PostProc.cmd in the program folder):

Running in directory "C:\PROGRA~2\SABnzbd\scripts\REMOTE~1\"

The first parameter (result-dir) = "V:\Downloads\Movies\The Search for Santa Paws"
The second parameter (nzb-name) = The.Search.For.Santa.Paws.SE.DK.SUBPACK.BluRay-REQ.nzb
The third parameter (nice name) = The.Search.For.Santa.Paws.SE.DK.SUBPACK.BluRay-REQ
The fourth parameter (newzbin #) = ""
The fifth parameter (category) = movie
The sixth parameter (group) = alt.binaries.hdtv.x264
The seventh parameter (status) = 0
The eigth parameter (failure_url)= h


The eigth parameter is again the first letter of the failure_url. I don't know if its relevant, but I'm using version 0.7.20 with python version 2.5.5 (r255:77872, Jan 31 2010, 15:49:35) [MSC v.1310 32 bit (Intel)].
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Fail url in post processing script is not single argumen

Post by shypike »

I see.
There aren't too many sites that have failurr_url.
Can you PM me a failing example?
Post Reply