User-script assistance

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
htnwrver
Newbie
Newbie
Posts: 2
Joined: March 13th, 2009, 2:00 am

User-script assistance

Post by htnwrver »

SABNZBD+ is great with tvNZB.  What I want to do is have SAB download TV shows and dump just the MKV file into my media center directory.  I currently have this working properly with a user script but I need help with the last step.  So SAB downloads the tv show into E:\TV\.  This script deletes the extra files and moves the mkv to the root folder.  The part that isn't working is the last line.  Any ideas on how to get it to delete the original folder named E:\TV\?  Here is my current script: 

@echo off
del %1\*.par2
del %1\*.sfv
del %1\*.nfo
move %1\*.* E:\TV
del E:\TV\%2

I appreciate the help.

-rb
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: User-script assistance

Post by shypike »

What is the last line supposed to do?
You are now trying:
  del e:\tv\blabla.nzb

You probably should use:
  del /s/q e:\tv\%3
  rmdir /s/q e:\tv\%3
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: User-script assistance

Post by switch »

Btw, you can get the same functionality using categories and the Series sorting.

Complete_dir: E:\
Cleanup List: .par2, .sfv, .nfo
TV Category folder: TV
Series Sort String: %sn - S%0sE%0e - %en.%ext

Would produce E:\TV\Show Name - S01E05 - Episode Name.avi 
htnwrver
Newbie
Newbie
Posts: 2
Joined: March 13th, 2009, 2:00 am

Re: User-script assistance

Post by htnwrver »

switch wrote: Btw, you can get the same functionality using categories and the Series sorting.

Complete_dir: E:\
Cleanup List: .par2, .sfv, .nfo
TV Category folder: TV
Series Sort String: %sn - S%0sE%0e - %en.%ext

Would produce E:\TV\Show Name - S01E05 - Episode Name.avi 
You're right, that does exactly what I want.  Thanks to both of you.
Post Reply