Fail url in post processing script is not single argument
Posted: December 13th, 2015, 8:15 am
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!
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!