drpete12 wrote:I placed the script in the directory where the other scripts are but it didn't show up in the list of choices for post-processing. Script was called iso.sh but I changed it to ISO.py and it shows up in list ( I assume I shouldn't do this but not sure how to get it to show in list)
Also, is there a way I can run the script manually in SAB to point it to downloaded file/directory or do i have to do an entire download and then see if it works.
Thanks
Do NOT rename a bash-script (iso.sh) to a python script (iso.py)! First Go to Config > Folders and set a path for
Post-Processing Scripts Folder, eg. ".sabnzbd/scripts". Then place the scripts you actually want to use in that directory.
If you place your script where the other scripts (Sample-PostProc.sh, etc.) are SABnzbd will not find them because that's not the script directory. Also make sure that the access rights for your script file is correct, eg. 755 (rwxr-xr-x). If that's not the case do
chmod 755 iso.sh
SABnzbd simply calls the script and appends "command line options", eg.
bash /path/to/script/iso.sh "this is value 1" "this is value 2" "this 2 is value 3" and so on. If you want to testrun your script you can do that manually, just call it the same way SABnzbd would call it and append the SABnzbd and download specific command line options. See
http://wiki.sabnzbd.org/user-scripts and to get your installation specific path and other stuff run Sample-PostProc.sh for any download. It does nothing but simply echo'ing the values submitted by SABnzbd. You then can use these to run your script manually.