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-script assistance
Forum rules
Help us help you:
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.
Re: User-script assistance
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
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
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
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
You're right, that does exactly what I want. Thanks to both of you.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


