Search found 9 matches

by bmupton
January 15th, 2014, 9:02 am
Forum: Post-Processing Scripts
Topic: Renaming Help
Replies: 4
Views: 4591

Re: Renaming Help

Why not use the TV renaming capabilities of SAB?

IN config -> sorting you can set sorting rules for a SAB category that should accomplish what you need here.
by bmupton
January 14th, 2014, 1:23 pm
Forum: Post-Processing Scripts
Topic: simple script to move files after processing
Replies: 39
Views: 68863

Re: simple script to move files after processing

I think my last post in this thread: http://forums.sabnzbd.org/viewtopic.php?f=9&t=16457 may help you. It's a Windows batch script, but the theory behind it should get you going.
by bmupton
January 14th, 2014, 1:19 pm
Forum: Post-Processing Scripts
Topic: [Windows] Need a simple Post processing script $$
Replies: 6
Views: 6425

Re: [Windows] Need a simple Post processing script $$

I think this could be accomplished... @ECHO OFF REM MAKE SURE THIS DIRECTORY EXISTS REM ALSO MAKE SURE YOU END IN A TRAILING SLASH SET CopyToDir="F:\TV Unsorted\" setlocal move /Y "%~1" %CopyToDir% exit That move command *should* move the entire folder in to your CopyToDir.
by bmupton
January 14th, 2014, 1:13 pm
Forum: Post-Processing Scripts
Topic: Another simple file move script request
Replies: 5
Views: 6280

Re: Another simple file move script request

Try this in place of the move /Y * %CopyToDir%

Code: Select all

IF NOT EXIST "%CopyToDir%%~3" mkdir "%CopyToDir%%~3"
move /Y * "%CopyToDir%%~3"
%~3 is the "clean job name" from SAB from this page: http://wiki.sabnzbd.org/user-scripts
by bmupton
December 19th, 2013, 5:24 pm
Forum: Post-Processing Scripts
Topic: [Windows] Need a simple Post processing script $$
Replies: 6
Views: 6425

Re: [Windows] Need a simple Post processing script $$

Copy this to a file called something like movefiles.bat in your sab post process folder:

Code: Select all

@ECHO OFF

REM MAKE SURE THIS DIRECTORY EXISTS
REM ALSO MAKE SURE YOU END IN A TRAILING SLASH
SET CopyToDir="F:\TV Unsorted\"

setlocal
pushd "%~1"
move /Y * %CopyToDir%
popd

exit
by bmupton
December 5th, 2012, 1:04 pm
Forum: Post-Processing Scripts
Topic: [Windows] Convert .MKV to .AVI and send to SickBeard
Replies: 3
Views: 6934

Re: [Windows] Convert .MKV to .AVI and send to SickBeard

I've updated this a little bit to use FFMPEG instead of XenonMKV as I was having lots of problems with XenonMKV not processing anything properly, or failing to process at all (and hanging my SAB Queue). @ECHO OFF ECHO. ECHO Begin SABPostProccessVideo... ECHO. REM Change these variables to match your...
by bmupton
November 12th, 2012, 12:31 am
Forum: Post-Processing Scripts
Topic: Windows: Simple post processing script to move movies to NAS
Replies: 3
Views: 5822

Re: Windows: Simple post processing script to move movies to

It'd be something like: move /Y "%~1\*.*" "\\server\share\%3" %3 is the "clean" name of the NZB Use the sorting/renaming built in to SAB while the file downloads to a temporary location on a "fast" hard drive on your PC, then the script could just move everyth...
by bmupton
November 9th, 2012, 7:20 pm
Forum: Post-Processing Scripts
Topic: [Windows] Convert .MKV to .AVI and send to SickBeard
Replies: 3
Views: 6934

Re: [Windows] Convert .MKV to .AVI and send to SickBeard

I've been using this script but I've modified it slightly. XenonMKV, at least for me, fails if the folder contains spaces, so I added some bits to copy things to a "processing" folder and back when done. I'm not near my processing computer right now, but when I am again I'll post what I di...