Come up with a useful post-processing script? Share it here!
-
Nanna
- Newbie

- Posts: 2
- Joined: August 26th, 2015, 7:52 am
Post
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

-
shypike
- Administrator

- Posts: 19774
- Joined: January 18th, 2008, 12:49 pm
Post
by shypike »
If you just want to delete based on file extensions, why not use the cleanup filter in Config->Switches?
-
Nanna
- Newbie

- Posts: 2
- Joined: August 26th, 2015, 7:52 am
Post
by Nanna »
Just want to do it for certin catagory
-
shypike
- Administrator

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