Page 1 of 1

Post-processing script for Couch Potato not working

Posted: August 28th, 2011, 11:31 am
by jestarr82
I'm a new sabnzbd user and followed the specific instructions in order to use Couch Potatoe's post-processing script to work. I dragged the scripts to the specific folder that I pointed sabnzbd to. When I go to categories, none of the pre-set categories are there, and the script is not available in the drop down menu. How do I get this working? Thanks.

Re: Post-processing script for Couch Potato not working

Posted: August 28th, 2011, 1:37 pm
by shypike
Are these scripts executable? What kind of extension do they have?
You're not even mentioning your operating system...

Re: Post-processing script for Couch Potato not working

Posted: August 28th, 2011, 2:31 pm
by jestarr82
Sorry. I'm on OSX and all the scripts have a .py extension.

Re: Post-processing script for Couch Potato not working

Posted: August 28th, 2011, 3:01 pm
by shypike
They should also have their X (executable) bit set.
And have as first line:
#!/usr/bin/python

Re: Post-processing script for Couch Potato not working

Posted: August 28th, 2011, 3:04 pm
by jestarr82
What do you mean above? I just double clicked the .py file and opened in notepad.

My first line is: #!/usr/bin/env python

Re: Post-processing script for Couch Potato not working

Posted: August 28th, 2011, 3:08 pm
by shypike
Does it have the executable bit set?
From a terminal session, use:
chmod +x your-script.py

Re: Post-processing script for Couch Potato not working

Posted: August 28th, 2011, 3:14 pm
by jestarr82
I'm sorry, I'm completely new to terminal and sab. How do I tell if it has an executable bit set? Am I supposed to replace your-script above with sabToSickBeard?

Re: Post-processing script for Couch Potato not working

Posted: August 28th, 2011, 4:18 pm
by shypike
You can see with the show-info in the Finder.
Yes, replace the name.
BTW: this is all basic scripting knowledge, very easy to Google :)