Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

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
MrDetermination
Newbie
Newbie
Posts: 6
Joined: April 14th, 2009, 10:04 pm

Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Post by MrDetermination »

Hi.  I donated to alt.binz a while back and am still running a Windows server but I'm reading Absolute FreeBSD and will someday soon move to a FreeBSD server.  So I recently started using sabnzbd in Windows to help prepare for the transition.

I love the while idea of a http "only" interface and find sabnzbd very stable.  But I do miss having the video files pop up by themselves in my "Purgatory" directory (before files live before I can sort of delete them by hand).

Sabnzbd likes to make subfolders named after the nzb.  I would prefer all files just get dumped in: X:\Purgatory (or soon /tmp/purgatory ;) ) and have it sweep up the .sfv, .nfo files when it deletes the .rars and whatever else from the original download.

Is this something there is planned support for?  Its already there?  Easy to fix with cron/scripting in *nix so I should go ahead and move already? :)

Thanks for a great open source cross platform app.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Post by shypike »

This is even better:

Code: Select all

#!/bin/bash
mv "$1/*" /tmp/purgatory
rmdir -r "$1/*"
Documented in: http://sabnzbd.wikidot.com/user-scripts
MrDetermination
Newbie
Newbie
Posts: 6
Joined: April 14th, 2009, 10:04 pm

Re: Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Post by MrDetermination »

Thanks.  Actually the *nix script already makes sense to me:

#!/bin/bash
mv "$1/*" /tmp/purgatory
rmdir -r "$1/*"

What is the analog in Windows?  Batch file?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Post by shypike »

Put this in a text file with ".cmd" extension.

Code: Select all

@echo off
move %1\* c:\tmp\purgatory
rmdir /s/q %1
Note: no quotes.
Last edited by shypike on April 15th, 2009, 12:37 pm, edited 1 time in total.
MrDetermination
Newbie
Newbie
Posts: 6
Joined: April 14th, 2009, 10:04 pm

Re: Want to: Do not create folder in unrar directory. Delete *.sfv. Delete *.nfo.

Post by MrDetermination »

Excellent, thanks so much.
Post Reply