External Player / Path Substitution / Shared Machine Issue.

This question/post was originally part of another thread I had started, but being buried underneath SOLVED thread, I wasn't getting replies & therefore am posting this issue separately/independently.

The original Thread/Post can be found [here].

I use an external player, PowerDVD, to play all my ISO's (Only the ISO's). I'm using a wonderful & efficient script written by brazen1 to do so, and the whole system works really well on my primary/server machine.

I ran into a problem with the "Client" machine. I setup everything just the same as the "Server" machine, including the external player/PowerDVD script - I've got a PATH problem which essentially stems from PATH SUBSTITUTION written in "advancesettings.xml" not being used by "playercorefactory,xml" which mounts & plays ISO's in an external player.

The path substitutions I have in "advancesettings.xml" work perfectly fine for any media that's played by the Internal Player, however, since "advancesettings.xml" affects KODI, not "playercorefactory.xml", it's not working for ISO's.

When I play an ISO, the script basically MOUNTS the ISO on the VirtualCloneDrive virtual drive (In this case, D drive), then launches PowerDVD and PowerDVD begins playback.

However, on the "Client", while all of the above still happens -- the only thing that doesn't happen is that the ISO doesn't mount because the Script doesn't have any Path Substitution capabilities - so when it sees "H:\Movies\Beetlejuice.ISO", it literally attempts to mount "H:\Movies\Beetlejuice.ISO", even though there is no "H:\Movies" on the "Client" machine.

All my ISO's are in "H:\Movies" on the "Server" machine.
In my advancesettings.xml, I have the Path Substitution setup as:

Code:
<substitute>
<from>H:\Movies</from>
<to>smb://l3viathan@MEDIASTRASSE/BD5/Movies</to>
</substitute>

This works perfectly fine within KODI.

However, I use the following 2 scripts (by brazen1) to MOUNT the ISO & launch PowerDVD:

Playercorefactory.XML
Code:
<playercorefactory>
  <players>
     <player name="PowerDVD" type="ExternalPlayer" audio="false" video="true">
       <filename>C:\Users\b3lial\AppData\Roaming\Kodi\userdata\PlayISO.bat</filename>
       <args>"{1}"</args>
       <hidekodi>true</hidekodi>
       <hideconsole>true</hideconsole>
       <forceontop>false</forceontop>
     </player>
    </players>
     <rules action="prepend">
       <rule filetypes="iso|bdmv|mpls" player="PowerDVD"/>
     </rules>
</playercorefactory>

PlayISO.bat
Code:
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
"C:\Program Files (x86)\CyberLink\PowerDVD16\PowerDVD.exe" D:
"C:\Program Files (x86)\Elaborate Bytes\VirtualCloneDrive\VCDMount.exe" /d=0 /u
GOTO end

:plaympls
set pth=%1
set pth=%pth:~1,-25%
"C:\Program Files (x86)\CyberLink\PowerDVD16\PowerDVD.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)\CyberLink\PowerDVD16\PowerDVD.exe" %pth% exit
GOTO end

:end
exit

While KODI knows that
H:\Movies\Beetlejuice.ISO
is really supposed to be
smb://l3viathan@MEDIASTRASSE/BD5/Movies/Beetlejuice.ISO
because of the Path Substitution in "advancesettings.xml", the "playcorefactory.xml" and subsequently the "PlayISO.bat" does not!
It is literally looking to mount
H:\Movies\Beetlejuice.ISO
instead of trying to mount smb://l3viathan@MEDIASTRASSE/BD5/Movies/Beetlejuice.ISO
and so I get an error
Could not mount H:\Movies\Beetlejuice.ISO.

The real issue stems from the fact that "advancesettings.xml" and "playercorefactory.xml" are independent of each other and are basically not talking to each other, therefore path substitutions written in "advancesettings.xml" are not read by "playercorefactory.xml".

Not sure how to resolve this issue. Looking for advice.

Thanks!

Thank you!

http://forum.kodi.tv/showthread.php?tid=293113 ^^^^^^ This is what I'm talking about! Thank you for making this sticky and the title of it! Should be click-baitable enough for the uninformed! Hopefully this cuts down on the stupid questions. *EDIT...

Control Tag Attribute List

Does anyone know f there is any documentation on the available attributes for Tags?

In the bellow example you can see there are 3 attributes for texture but there appears no documentation for what all available attributes are. My main goal is to find out if there is an attribute to disable cache via xml for a specific texture, but a list of options would be great

PHP Code:
<control type="image" id="1">
      <
description>My first image control</description>
      <
left>80</left>
      <
top>60</top>
      <
width>250</width>
      <
height>200</height>
      <
visible>true</visible>
      <
colordiffuse>FFFFFFFF</colordiffuse>
      <
fadetime>200</fadetime>
      <
texture border="5" flipy="true" flipx="false">mytexture.png</texture>
      <
bordertexture border="5">mybordertexture.png</bordertexture>
      <
bordersize>5</bordersize>
      <
texture>$INFO[MusicPlayer.Cover]</texture>
      <
aspectratio>keep</aspectratio>
</
control

Is the current Pi3 sufficient for Kodi ?

As I still have and like my WD setbox I'm wondering if it would be best to wait on the next Raspberry Pi. For now I'm running and learning kodi on my win7 pc as I currently don't have a Pi yet. Though I would like to eventually move on to a Pi running ...

hide watched filter hiding partially watched shows

When i stop a show near the end this feature is hiding the show as if it's watched when it's not. The episode still has the "play" button and not the completed checkmark, but i have to turn off the filter to see the episode to be able to finish watchin...

Kodi set TV volume to 100% (DLNA/UPNP – Windows)

My problem is, my fresh installed Kodi Krypton beta 3 change my original TV volume to 100% everytime, when i send a movie to TV with DLNA. I didnt have this problem with Jarvis. Someone can you help me, what i need to fix this problem ?

https (SSL) rather http

Is there a reason why the forum doesn't use the more secure ssl protocol? I know that some people might find it a bit pointless for a forum but many people probably use the same sign on details for many different sites simply because it is easier to re...

Hadware acceleration is disabled with PVR stream

Hi all, I have a problem with Krypton beta 3 (but the problem was there with beta 1 and 2). Hardware acceleration is disabled only when I use the PVR for watching live TV (stream), and of course in the settings, video hardware acceleration is set to o...

Dolby Digital settings

I am using the raspberry pi 3 , Kodi , OSMC. I have it connected to my home theater receiver using 5.1 speakers and all I can get on movie audio is PLII Cinema? My receiver is capable of decoding Dolby Digital. I have passthru enabled as well as AC3 ...

Windows server 2012 + symlink = can’t scrap

I set up a new server with the exact same OS setup as before, but i'm getting this when i tried to scrap.. any idea why? http://pastebin.com/USy7vD4Q I symlinked userdata to another drive because my OS ssd is limited... But this setup worked before s...

Is there a sickrage context plugin?

Hi all, I've seen Carey's sickbeard plugin for controlling sickbeard from Kodi. What I'm wondering is if there's an addon that enables context menus for TV shows that would allow deleting TV shows from sickrage database and delete the files? Backgro...

addon

Hi I have a problem I loaded a addon and its taken over my box. Every time I switch the box on I get the normal screen I then pick the program and this enlessfilm app starts to load and I cannot go to the main screen to uninstall the addon ? all so the...