Page 1 of 1

TV shows post-processing (delete)

Posted: January 22nd, 2010, 5:50 am
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.

Re: TV shows post-processing (delete)

Posted: January 22nd, 2010, 7:25 am
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.

Re: TV shows post-processing (delete)

Posted: January 22nd, 2010, 10:02 am
by shypike
Look in Config->General.
You can set a list of extensions to be deleted.

Re: TV shows post-processing (delete)

Posted: January 22nd, 2010, 4:29 pm
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.

Re: TV shows post-processing (delete)

Posted: January 23rd, 2010, 11:07 am
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.