Post Processing script on Synology NAS

Come up with a useful post-processing script? Share it here!
Post Reply
Nanna
Newbie
Newbie
Posts: 2
Joined: August 26th, 2015, 7:52 am

Post Processing script on Synology NAS

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

Re: Post Processing script on Synology NAS

Post by shypike »

If you just want to delete based on file extensions, why not use the cleanup filter in Config->Switches?
Nanna
Newbie
Newbie
Posts: 2
Joined: August 26th, 2015, 7:52 am

Re: Post Processing script on Synology NAS

Post by Nanna »

Just want to do it for certin catagory
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Post Processing script on Synology NAS

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.
Post Reply