Page 1 of 1
Post Processing script on Synology NAS
Posted: August 26th, 2015, 7:55 am
by Nanna
I need a script that can delete unwanted files like .sfv .nfo .jpg etc.
My sabNzb is running on Synology/Python
Please anyone help me out
![Smiley :)](./images/smilies/smiley.gif)
Re: Post Processing script on Synology NAS
Posted: August 26th, 2015, 1:52 pm
by shypike
If you just want to delete based on file extensions, why not use the cleanup filter in Config->Switches?
Re: Post Processing script on Synology NAS
Posted: August 27th, 2015, 10:40 am
by Nanna
Just want to do it for certin catagory
Re: Post Processing script on Synology NAS
Posted: August 27th, 2015, 10:44 am
by shypike
Code: Select all
#!/bin/sh
cd "$1"
rm *.sfv *.nfo *.jpg
Put it in a file, run "chmod +x" on it and place it in the "scripts" folder.
Then pick the script for the category.