RSS not using post script

Report & discuss bugs found in SABnzbd

RSS not using post script

Postby Hairybiker » May 15th, 2012, 11:46 am

Using 0.7.0Beta5

I have some rss feeds setup and added a post script to clean some files from one feed.
I have it set in the defaults at the top but it is not run.
Does it also need to be set in the categories ?

The script is executable (+rx) by anyone and is owned by my user (on a Linux Mint base)

My script is very simple and I added an echo $1 >>~/result.txt but it isn't run

Basically it is just
rm $1/filename
for each one I want deleted so nothing complicated.
Hairybiker
Newbie
Newbie
 
Posts: 26
Joined: October 24th, 2011, 5:18 am

Re: RSS not using post script

Postby shypike » May 15th, 2012, 1:22 pm

You need to put quotes around the parameters, so:
rm "$1/filename"
Second set logging level to debug, do a job and then look
into the log file and search for your script's name.
User avatar
shypike
Administrator
Administrator
 
Posts: 16556
Joined: January 18th, 2008, 1:49 pm

Re: RSS not using post script

Postby Hairybiker » May 16th, 2012, 8:57 am

Thanks.
OK got it working but I had to add the script to the actual download filter rather than to the top line which is where I thought it would be picked up for all the filters like the Processing action & category settings.
Hairybiker
Newbie
Newbie
 
Posts: 26
Joined: October 24th, 2011, 5:18 am

Re: RSS not using post script

Postby shypike » May 16th, 2012, 11:28 am

If you put the script in the "Default" category it will be picked up by the other categories.
But only when these categories have "default" as script.
If they have "None", this will override the global setting.
User avatar
shypike
Administrator
Administrator
 
Posts: 16556
Joined: January 18th, 2008, 1:49 pm

Re: RSS not using post script

Postby Hairybiker » May 16th, 2012, 1:44 pm

Thanks, I must have had it set to none for some reason.
Hairybiker
Newbie
Newbie
 
Posts: 26
Joined: October 24th, 2011, 5:18 am


Return to Bug Reports