Path substitution and external player



Hello,

For the context :
– I have multiple Kodi player (Windows, Linux and Android).
– I use a centralized database on NAS (MariaDB) via advancedsettings.xml
– I use an external player (mpv) on Windows.

I will use mpv on Linux, but the link on database are smb, and not nfs.
Path substitution work for internal player but not for external player (mpv receive the database link without substitution, and on linux mpv isn’t compile with smbclient).
It’s a bug ? Anyone have an idea for make the path substitution work ?

Here my advancedsettings.xml file :

<advancedsettings>
  <videodatabase>
    <type>mysql</type>
    <host>192.168.38.60</host>
    <port>3306</port>
    <user>kodi</user>
    <pass>PASSWORD</pass>
  </videodatabase> 
  <musicdatabase>
    <type>mysql</type>
    <host>192.168.38.60</host>
    <port>3306</port>
    <user>kodi</user>
    <pass>PASSWORD</pass>
  </musicdatabase>
  <videolibrary>
    <importwatchedstate>true</importwatchedstate>
    <importresumepoint>true</importresumepoint>
  </videolibrary>
  <pathsubstitution>
    <substitute>
      <from>smb://IP/Video/</from>
      <to>/mnt/Video/</to>
    </substitute>
  </pathsubstitution>
</advancedsettings>

My playercorefactory.xml :
<playercorefactory>
    <players>
        <player name=”MPV” type=”ExternalPlayer” audio=”false” video=”true”>
            <filename>/usr/bin/mpv</filename>
            <args>–fs=yes “{1}”</args>
            <hidexbmc>false</hidexbmc>
        </player>
    </players>
    <rules action=”prepend”>
        <rule video=”true” player=”MPV”/>
    </rules>
</playercorefactory>