Win One Button DVD/BluRay Ripping using a Launcher from within XBMC
Alright so I've also changed the discnum:0 switch for the MakeMKV CLI to be a variable that is discovered by the %volid% variable. This would solve an issue where if someone had two drives and they didn't know if it was disc:0 or disc:1; it's not really needed but it would just be one less variable to find. I only tested the :GetDiscNum part with one disc, so maybe try it out with one of your own.

Here's the code:
Code:
:GetDiscNum
::Get disc number based on name of %volid%
"%IntDir%\makemkvcon64.exe" -r --cache=1 info disc:9999 | find /i "%volid%" > "%userprofile%\ARtemp"
type "%userprofile%\ARtemp"
set /p discNum=<"%userprofile%\ARtemp"
del "%userprofile%\ARtemp"
set discNum=%discNum:~4,1%

cd /d "%IntDir%"
makemkvcon64.exe --minlength=%RipMinSeconds% mkv disc:%discNum% all "%RipDir%%volid%"

I tested this by converting a smaller video file to a DVD ISO then mounting it to a virtual drive and specifying that drive for the drive letter. Everything works fine for me, would you mind giving it a test?

Also I had to modify my update code a little bit but it works as far as I've tested. Also I changed the ScriptPath variable to be dynamically hardcoded, as long as the exe file is with the other scripts it won't need to be set. This is referenced in batch files by %~dp0

Full Code


Feel free to take any and all of it, if anything I now have exactly what I was looking for. Thanks again.
ATV2 running XBMC Eden (Skin: Quartz3)
Windows 7 running XBMC Eden (custom setup as I'm basically running it as a service)
MySQL installed on Windows 7 for sharing libraries
iOS Specific FAQ | Alternative ATV2 keymap | Default ATV2 keymap
Post log files to Pastebin

Image
Reply


Messages In This Thread
[No subject] - by Spinalcrack - 2011-07-10, 23:22
New forum member is here - by Geatteevold - 2012-08-23, 03:11
[No subject] - by Johnnovision - 2011-07-12, 22:39
[No subject] - by patm95 - 2011-07-13, 05:03
[No subject] - by Spinalcrack - 2011-07-13, 05:40
[No subject] - by realjobe - 2011-07-13, 13:30
[No subject] - by Spinalcrack - 2011-07-13, 14:20
[No subject] - by publicENEMY - 2011-12-09, 04:40
RE: - by apr0mpt - 2013-01-16, 23:53
[No subject] - by Valdysses - 2012-02-25, 19:17
[No subject] - by Spinalcrack - 2012-02-26, 00:30
[No subject] - by cank - 2012-02-26, 21:32
[No subject] - by Spinalcrack - 2012-02-26, 23:45
[No subject] - by cank - 2012-02-27, 03:31
[No subject] - by Spinalcrack - 2012-02-27, 03:52
any news? - by TheOutlawEzE - 2012-02-28, 07:44
[No subject] - by Spinalcrack - 2012-02-28, 15:34
Updated version - by Spinalcrack - 2012-02-29, 06:46
[No subject] - by TheOutlawEzE - 2012-03-01, 06:24
[No subject] - by Spinalcrack - 2012-03-01, 06:38
*** Major Bug Fix *** - by Spinalcrack - 2012-08-06, 21:42
RE: One Button DVD/BluRay Ripping using a Launcher from within XBMC - by akevit - 2012-11-02, 01:52
Logout Mark Read Team Forum Stats Members Help
One Button DVD/BluRay Ripping using a Launcher from within XBMC9