RSS not using post script

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Hairybiker
Jr. Member
Jr. Member
Posts: 50
Joined: October 24th, 2011, 4:18 am

RSS not using post script

Post by Hairybiker »

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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: RSS not using post script

Post by shypike »

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.
Hairybiker
Jr. Member
Jr. Member
Posts: 50
Joined: October 24th, 2011, 4:18 am

Re: RSS not using post script

Post by Hairybiker »

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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: RSS not using post script

Post by shypike »

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.
Hairybiker
Jr. Member
Jr. Member
Posts: 50
Joined: October 24th, 2011, 4:18 am

Re: RSS not using post script

Post by Hairybiker »

Thanks, I must have had it set to none for some reason.
Post Reply