TV shows post-processing (delete)

Get help with all aspects of 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
dbznbas
Newbie
Newbie
Posts: 16
Joined: January 21st, 2010, 2:14 pm

TV shows post-processing (delete)

Post by dbznbas »

I just gave sabnzbd a first run with +delete, but im still left with .nfo, .sfv, .srr, sample.avi. I would like to delete everything except the .avi, is that possible? I dont think I can do it in the general tab as that would apply to everything. I only want it to apply to tv shows. Any help would be appreciated.
Eejit
Sr. Member
Sr. Member
Posts: 267
Joined: September 10th, 2008, 5:46 pm

Re: TV shows post-processing (delete)

Post by Eejit »

You would do it by running a script after the download. This script would be defaulted to only the TV catagory in Config>Catagories

Can't help with the script though.
Eejit - The name say's it all !!
Image
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: TV shows post-processing (delete)

Post by shypike »

Look in Config->General.
You can set a list of extensions to be deleted.
dbznbas
Newbie
Newbie
Posts: 16
Joined: January 21st, 2010, 2:14 pm

Re: TV shows post-processing (delete)

Post by dbznbas »

shypike wrote: Look in Config->General.
You can set a list of extensions to be deleted.
But this will delete for every categories though. I only want it to apply to TV.

I found a script which seems to meet my needs:
http://forums.sabnzbd.org/index.php?topic=897.0

However, i am getting problems running it.
[Cleanup] Cleaning up download directory: "F:\Videos\TV Series"
[Cleanup] Deleteing .nzb files
find: invalid predicate `'
[Cleanup] Deleteing .sfv files
find: invalid predicate `'
[Cleanup] Deleteing .url files
find: invalid predicate `'
[Cleanup] Deleteing .db files
find: invalid predicate `'
[Cleanup] Deleted 0 files (0 nzb, 0 sfv, 0 url, 0 db)

I am using the code given in that thread and saving it as a .cmd file for post-processing.
dbznbas
Newbie
Newbie
Posts: 16
Joined: January 21st, 2010, 2:14 pm

Re: TV shows post-processing (delete)

Post by dbznbas »

Nevermind, got it to work by changing the script

Code: Select all

@echo off
setlocal
 
echo.
echo [Cleanup] Cleaning up download directory: %1
 
echo [Cleanup] Deleting .nzb files
DEL  %1\*.nzb  /S /F /Q 
 
echo [Cleanup] Deleting .sfv files
DEL  %1\*.sfv  /S /F /Q 

echo [Cleanup] Deleting .nfo files
DEL  %1\*.nfo  /S /F /Q 

echo [Cleanup] Deleting .sub files
DEL  %1\*.sub  /S /F /Q 

echo [Cleanup] Deleting .idx files
DEL  %1\*.idx  /S /F /Q 

echo [Cleanup] Deleting .sample files
DEL  %1\*sample*.avi  /S /F /Q 

echo [Cleanup] Deleting .srr files
DEL  %1\*.srr /S /F /Q 


echo.
Post Reply