This script automates the creation of iso files:
Prerequisites:
Windows
Sabnzbd+
ImgBurn (freeware: http://www.imgburn.com)
step1:
Download and install Imageburn. Now you will have to configure iMageBurn.
Click on Tools -> Settings. On the tab Build -> page 3
and set the prompts:
don't prompt audio_ts content -> answer yes
don't prompt video_ts content -> answer yes

Uploaded with ImageShack.us
step2:
create this batch script:
Open notepad and save as .bat file!
Code: Select all
@ECHO on
REM -------- Windows Only !
REM -------- Post processing script for SABNZBD+
REM -------- This will create iso files after downloading a video_ts file with sabnzbd
REM -------- Thomas De Swaef
REM -------- 09-07-2011 --> Version 1
REM -------- http://ss64.com/nt/setlocal.html
REM -------- Expand variables at execution time rather than at parse time.
SetLocal EnableDelayedExpansion
REM -- setting the sabnzbd+ variables
REM ------ 1 The final directory of the job (full path)
REM ------ 2 The original name of the NZB file
REM ------ 3 Clean version of the job name (no path info and ".nzb" removed)
REM ------ 4 Indexer's report number (if supported)
REM ------ 5 User-defined category
REM ------ 6 Group that the NZB was posted in e.g. alt.binaries.x
REM ------ 7 Status of post processing. 0 = OK, 1=failed verification, 2=failed unpack, 3=1+21
set _FinalJobDir=%1
set _NzbFileName=%2
set _PostProcessingFailed=%7
if _PostProcessingFailed GTR 0 (
GOTO:NO_VIDEOTS ) else (GOTO:EXECUTE_SCRIPT)
:EXECUTE_SCRIPT
REM -- set help variables
set _FindResult=C:\
set _CurrentDirectory="%CD%"
REM ------ look for VIDEO_TS.IFO file in your downloaded folder
set LF=VIDEO_TS.IFO
chdir /d %_FinalJobDir%
if x%LF%==x goto eof
FOR /F "tokens=*" %%G IN ('dir /s /b %LF%') DO SET _FindResult=%%G
if "%_FindResult%" EQU "C:\" GOTO:NO_VIDEOTS
REM ------ VIDEO_TS.IFO is found, so get the directory right and create iso file!
REM ------ Get the directory right by deleting the VIDEO_TS.IFO out of the search result.
set _FindResult=%_FindResult:VIDEO_TS.IFO =%
REM ------ execute the imgburn program and create iso
call "C:\Users\Thomas\Desktop\test sabnzbd\ImgBurn.exe" /MODE BUILD /BUILDOUTPUTMODE IMAGEFILE /SRC "%_FindResult%" /DEST "%_FinalJobDir%\%_NzbFileName%.iso" /FILESYSTEM "ISO9660 + UDF" /UDFREVISION "1.02" /VOLUMELABEL "%_NzbFileName%" /LOG %_FindResult%"test.log" /START /NOIMAGEDETAILS /CLOSE
:NO_VIDEOTS
exit
Put it in your watch dir of scripts in sabnzbd and you are ready to go
