Page 1 of 1
User-script assistance
Posted: March 13th, 2009, 2:19 am
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
Re: User-script assistance
Posted: March 13th, 2009, 2:30 am
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
Re: User-script assistance
Posted: March 13th, 2009, 5:59 am
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
Re: User-script assistance
Posted: March 13th, 2009, 11:26 am
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.