Hello, thanks for putting this together, I just ordered a Blu-Ray drive and was hoping something like this existed -- I'm excited to try it out next week!
If you're interested in also automatically updating the library, you could add the following to your code. I am not sure if Eden supports JSON or if it is only Frodo, so the question for which version you're using might be pointless, but at least I know that the HTTP API works in Eden and the JSON API works in Frodo. I haven't had a chance to test this yet since I don't have the drive, but it
should work

.
Also, in going through your batch file, I see one area that
might be an issue. Where you have:
Code:
If %Handbrake%==Yes call :HBEncode
The code will go through the HBEnode label but then also go through the rename label an additional time, as there is no escape from the HBEncode section. I actually don't really see this being a problem since it is going to try and rename a file that no longer exists, but it still might be worth it to jump out of the HBEncode label in the event some other portion of code is added later.
New Variables:
Code:
::------------------------------------
::
::*** Update XBMC Library Upon completion?
::*** NOTE: CURL for Windows MUST BE INSTALLED
:: http://curl.haxx.se/download.html
::
::------------------------------------
set UpdateXBMC=Yes
::------------------------------------
::
::*** Which version of XBMC are you using? Enter Frodo or Eden
::
::------------------------------------
set XBMCversion=Frodo
:: Set login details for XBMC HTTP access
set XBMCuser=xbmc
set XBMCpass=xbmc
set XBMCurl=127.0.0.1
set XBMCport=8082
set cURLpath=C:\cURL\curl.exe
Modified/Added code (paste after "for %%i in ("title*.mkv") do (set fname=%%i) & call :rename[/i]"):[/b]
Code:
:EndingScripts
If %Handbrake%==Yes call :HBEncode
If %UpdateXBMC%==Yes call :UpdateLibrary
:ScriptComplete
cd /d "%ScriptPath%"
AutoRipComplete.vbs
cscript Beep.vbs
exit
:NoDrive
cd /d "%ScriptPath%"
cscript Beep.vbs
NoDiskDrive.hta
AutoRipComplete.vbs
exit
:HBEncode
cd /d "%Handbrakepath%"
HandBrakeCLI -v0 -i "%RipDir%%volid%" -o "%RipDir%%volid%\%volid% 720p.mkv" %FORMAT% %QUALITY% %SIZE%
cd /d %_tmpPath%
del "%volid%_*.mkv"
SET Handbrake=NULL
Goto :EndingScripts
:rename
::Cuts off 1st 5 characters of fname, then appends prefix
ren %fname% "%volid%"_%fname:~5%
Goto :EndingScripts
:UpdateLibrary
If XBMCversion==Frodo set updateCall=%cURLpath% -i -H "Content-Type: application/json" -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.Scan\"}" http://%XBMCuser%:%XBMCpass%@%XBMCurl%:%XBMCport%/jsonrpc
If XMBCversion==Eden set updateCall=%cURLpath% --get "http://%XBMCuser%:%XBMCpass%@%XBMCurl%:%XBMCport%/xbmcCmds/xbmcHttp?command=ExecBuiltIn¶meter=XBMC.updatelibrary(video)"
call %updateCall%
SET UpdateXBMC=NULL
Goto :EndingScripts
Thanks again for doing this
Edit: One thing to note is that if you did want to include this in your download, you could include the 32-bit and x64 version of curl in your installer then call it from there, as it's just an exe file and doesn't need to be registered or anything.