A little help! -- need a script for deleting any .sfv, .nfo's etc for a category

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
clarkey2r
Newbie
Newbie
Posts: 14
Joined: January 12th, 2010, 6:19 am

A little help! -- need a script for deleting any .sfv, .nfo's etc for a category

Post by clarkey2r »

Hi

Can some one tell me if its possible to run a script for deleting any .sfv, .nfo's etc for a specific category?
I'm not really sure where to start looking, I've had a quick look in the config and can see where I can do this for all downloads but thats not really what I want!

Cheers
Last edited by Anonymous on October 27th, 2010, 10:04 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: A little help! -- need a script for deleting any .sfv, .nfo's etc for a category

Post by shypike »

Assuming you run Windows, this is a usable script:

Code: Select all

@echo off
del %1\*.nfo %1\*.sfv
Put it in a file called clean.cmd and put that file in the folder you specified in Config->Folders.
Then pick the script for any applicable category in Config->Categories.
clarkey2r
Newbie
Newbie
Posts: 14
Joined: January 12th, 2010, 6:19 am

Re: A little help! -- need a script for deleting any .sfv, .nfo's etc for a category

Post by clarkey2r »

Will that still sort the movies/films how I have configured??
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: A little help! -- need a script for deleting any .sfv, .nfo's etc for a category

Post by shypike »

yes.
clarkey2r
Newbie
Newbie
Posts: 14
Joined: January 12th, 2010, 6:19 am

Re: A little help! -- need a script for deleting any .sfv, .nfo's etc for a category

Post by clarkey2r »

Hi

Could I get the script to remove samples?

%1\*sample*
clarkey2r
Newbie
Newbie
Posts: 14
Joined: January 12th, 2010, 6:19 am

Re: A little help! -- need a script for deleting any .sfv, .nfo's etc for a category

Post by clarkey2r »

The cmd removed all the .sfv and .nfo as instructed but the movie name doesn't follow the sorting instructions that I set out '%title (%y).%ext'
Post Reply