as a sidenote, in the sabnzbd.log ... it shows that it's running the external script with the parameters ...
Code: Select all
2009-11-22 13:26:24,403::INFO::[newsunpack] Running external script h:\htpc\downloads\sabnzbd\scripts\myepisodes.py(H:\htpc\videos\unsorted\TV\Cops\Season 22, msgid_5225615 Cops - 22x10 - Slacker Crimes Special Edition.nzb, Cops - 22x10 - Slacker Crimes Special Edition, 5225615, tv, alt.binaries.multimedia)
update:
I attempted to use the prowl python script, to see if maybe my script was just not working properly or not ... and found that the prowl python script also does not function properly, it errors with the following stack trace:
Code: Select all
Traceback (most recent call last):
File "H:\htpc\downloads\sabnzbd\scripts\prowl.py", line 4, in <module>
job_name = sys.argv[3]
IndexError: list index out of range
So, I'm beginning to wonder whether or not python scripts are supported properly on the windows platform. If it makes a difference, I am running Windows Server 2008 64-bit, and my python installation on this machine is 2.5.2 (although this should not matter since sabnzbd is running in it's own contained python interpreter ... most likely built using py2exe or whatever it's called ... so, external script execution should be performed ... I would think, with that, no?)
I created another script, called 'test.bat' that contains:
Code: Select all
echo %1
echo %2
echo %3
echo %4
echo %5
echo %6
and it outputs the parameters properly ... so, now I'm completely baffled and clueless.
I believe I have solved this problem by creating a .bat file that calls my python script for me and passes the information along, it also allows me to setup sabnzbd to execute multiple post-processing scripts - such as the Prowl script to notify my iPhone of the completed download, so I know what I can watch ... as well as executing my python script for updating myepisodes.com to flag an item as 'acquired' (this script is still in testing, and needs quite a bit of work ... but since I couldn't find one already written, I started writing it ... and will post it when it's ready for general consumption)