Post-processing script for Couch Potato not working

Get help with all aspects of SABnzbd

Post-processing script for Couch Potato not working

Postby jestarr82 » August 28th, 2011, 12:31 pm

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.
jestarr82
Newbie
Newbie
 
Posts: 4
Joined: August 28th, 2011, 12:28 pm

Re: Post-processing script for Couch Potato not working

Postby shypike » August 28th, 2011, 2:37 pm

Are these scripts executable? What kind of extension do they have?
You're not even mentioning your operating system...
User avatar
shypike
Administrator
Administrator
 
Posts: 19820
Joined: January 18th, 2008, 1:49 pm

Re: Post-processing script for Couch Potato not working

Postby jestarr82 » August 28th, 2011, 3:31 pm

Sorry. I'm on OSX and all the scripts have a .py extension.
jestarr82
Newbie
Newbie
 
Posts: 4
Joined: August 28th, 2011, 12:28 pm

Re: Post-processing script for Couch Potato not working

Postby shypike » August 28th, 2011, 4:01 pm

They should also have their X (executable) bit set.
And have as first line:
#!/usr/bin/python
User avatar
shypike
Administrator
Administrator
 
Posts: 19820
Joined: January 18th, 2008, 1:49 pm

Re: Post-processing script for Couch Potato not working

Postby jestarr82 » August 28th, 2011, 4:04 pm

What do you mean above? I just double clicked the .py file and opened in notepad.

My first line is: #!/usr/bin/env python
jestarr82
Newbie
Newbie
 
Posts: 4
Joined: August 28th, 2011, 12:28 pm

Re: Post-processing script for Couch Potato not working

Postby shypike » August 28th, 2011, 4:08 pm

Does it have the executable bit set?
From a terminal session, use:
chmod +x your-script.py
User avatar
shypike
Administrator
Administrator
 
Posts: 19820
Joined: January 18th, 2008, 1:49 pm

Re: Post-processing script for Couch Potato not working

Postby jestarr82 » August 28th, 2011, 4:14 pm

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?
jestarr82
Newbie
Newbie
 
Posts: 4
Joined: August 28th, 2011, 12:28 pm

Re: Post-processing script for Couch Potato not working

Postby shypike » August 28th, 2011, 5:18 pm

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 :)
User avatar
shypike
Administrator
Administrator
 
Posts: 19820
Joined: January 18th, 2008, 1:49 pm


Return to General Help