playercorefactory - unable to use it to only play ISO
#1
Hi all,

I am trying to get Kodi to only launch TMT6 when it detects an ISO (I rip all my 3D films as ISO). Here are my files:

----------------------------------------------------------------------
playercorefactory

<playercorefactory>
<players>

<player name="ISO_BDMV_Player" type="ExternalPlayer" audio="false" video="true">
<filename>C:\Users\Paul\AppData\Roaming\Kodi\userdata\PlayISO.bat</filename>
<args>"{1}" /fullscreen</args>
<hidexbmc>true</hidexbmc>
<hideconsole>false</hideconsole>
<warpcursor>none</warpcursor>
</player>

</players>

<rules action="prepend">
<!-- Bluray ISO/BDMV -->
<rule filetypes="iso|bdmv|mpls" player="ISO_BDMV_Player"/>

</rules>
</playercorefactory>
----------------------------------------------------------------------


----------------------------------------------------------------------
PlayISO

Set file=%1
Set dummy=%file:iso=%
IF NOT %dummy% == %file% (GOTO playiso) ELSE (goto next)

:next
Set file=%1
Set dummy=%file:mpls=%
IF NOT %dummy% == %file% (GOTO plaympls) ELSE (goto playbdmv)

:playiso
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 %1

:unmounted
IF EXIST D:\BDMV\. GOTO mounted
GOTO unmounted

:mounted

"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uTotalMediaTheatre6.exe" D:
GOTO end

:next

"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uTotalMediaTheatre6.exe" %1 exit
GOTO end

:plaympls
set pth=%1
set pth=%pth:~1,-25%

"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uTotalMediaTheatre6.exe" "%pth%" exit
GOTO end

:playbdmv
set pth=%1
set pth=%pth:BDMV\MovieObject.bdmv=%
set pth=%pth:BDMV\index.bdmv=%

"C:\Program Files (x86)\ArcSoft\TotalMedia Theatre 6\uTotalMediaTheatre6.exe" %pth% exit
GOTO end

:end
exit
----------------------------------------------------------------------


If I leave the files as above, Kodi launches TMT6 when it detects ISO and BluRay, as it should. However, if I change the filetypes line to this <rule filetypes="iso" player="ISO_BDMV_Player"/> so it should only launch TMT6 when it sees an ISO, it doesn't launch TMT6 at all - it just ignores it. It's only when I have filetypes="iso|bdmv|mpls" that it launches correctly. I even tried filetypes="iso|abcd|efgh" thinking that there needed to be multiple options in there, but again, TMT6 isn't launched when it's an ISO - it just plays (2D) directly from Kodi.

Can anyone explain what I need to do?

Cheers.
Reply

Logout Mark Read Team Forum Stats Members Help
playercorefactory - unable to use it to only play ISO0