Well the title just about sums it up but here's the longer version..
Version: 0.5.1 RC2 (also had RC1, same problem)
OS: Mac OSX 10.6.3
Install-type: OSX app in DMG
I have a user script (shell script) for 'post processing', actually it in turn starts an Applescript and passes the arguments to that.
Code: Select all
#!/bin/sh
osascript /Users/chris/sabnzbd/SABnzbd.scpt "$3" "$7"
The applescript is used to send a notification to my iPhone, I use Prowl for this, which is a plugin for Growl.
This is the applescript:
Code: Select all
on run argv
tell application "GrowlHelperApp"
set strSuccess to "EPIC FAIL"
if item 2 of argv = "0" then set strSuccess to "Success, Enjoy!"
if item 2 of argv = "1" then set strSuccess to "INCOMPLETE, Sorry.."
if item 2 of argv = "2" then set strSuccess to "EXTRACT ERROR - Password?"
notify with name "Download complete" title "Completed download:" description item 1 of argv & "
Result: " & strSuccess application name "SABnzb"
end tell
end run
The first part works fine, it notifies me that the download is complete. The second part does not work, it tells me it succeeded in unpacking when it did in fact not succeed. I have been debugging the issue and reading up on release notes etc. to find an answer to my quest. I didn't find any yet. However I did find something interesting in the logs:
Note that it says the status is 0 (OK), in fact this is one that I am sure had failed because I removed half of the NZB file myself to test it.2010-04-08 17:58:12,492::INFO::[newsunpack:126] Running external script /Users/me/sabnzbd/sabnzbd.sh(/Volumes/Storage/Nieuw/lost.1, lost.nzb, lost, , None, alt.binaries.x, 0)
So can anybody tell me, am I doing something wrong? I am I alone in this situation? Is this simply a bug?
Any help is much appreciated!
Regards,
Chris