Kodi Community Forum

Full Version: Path Substitution Problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am on the release version of Eden, running on Windows 7 x64 on three PCs. All Media is stored on a FreeNAS server sharing via SMB.

I'm running MySQL 5.5 on a Windows 7 x64 PC.

I'm not having any issues at all with the MySQL library syncing between all of the XBMC PCs, but I am unable to get Path Substitution working at all for Thumbnails or sources.xml.

My advancedsettings.xml file is being read by XBMC according to the log, and by the fact that the DB is working properly, but the Thumbnails are still being stored locally, as well as sources.xml.

Here is the relevant snippet of my log:

Code:
13:12:00 T:5432  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
13:12:00 T:5432  NOTICE: Loaded settings file from special://profile/advancedsettings.xml
13:12:00 T:5432  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <videodatabase>
                                                <type>mysql</type>
                                                <host>192.168.2.104</host>
                                                <port>3306</port>
                                                <user>xbmc</user>
                                                <pass>xbmc</pass>
                                              </videodatabase>
                                              <musicdatabase>
                                                <type>mysql</type>
                                                <host>192.168.2.104</host>
                                                <port>3306</port>
                                                <user>xbmc</user>
                                                <pass>xbmc</pass>
                                              </musicdatabase>
                                            </advancedsettings>
                                            <pathsubstitution>
                                              <substitute>
                                                <from>special://masterprofile/playlists/</from>
                                                <to>smb://192.168.2.186/Media/xbmc/userdata/playlists/</to>
                                              </substitute>
                                              <substitute>
                                                <from>special://masterprofile/addon_data/</from>
                                                <to>smb://192.168.2.186/Media/xbmc/userdata/addon_data/</to>
                                              </substitute>
                                              <substitute>
                                                <from>special://masterprofile/keymaps/</from>
                                                <to>smb://192.168.2.186/Media/xbmc/userdata/keymaps/</to>
                                              </substitute>
                                              <substitute>
                                                <from>special://masterprofile/sources.xml</from>
                                                <to>smb://192.168.2.186/xbmc/userdata/sources.xml</to>
                                              </substitute>
                                              <substitute>
                                                <from>special://masterprofile/mediasources.xml</from>
                                                <to>smb://192.168.2.186/xbmc/userdata/mediasources.xml</to>
                                              </substitute>
                                              <substitute>
                                                <from>special://masterprofile/RssFeeds.xml</from>
                                                <to>smb://192.168.2.186/Media/xbmc/userdata/RssFeeds.xml</to>
                                              </substitute>
                                              <substitute>
                                                <from>special://masterprofile/favourites.xml</from>
                                                <to>smb://192.168.2.186/Media/xbmc/userdata/favourites.xml</to>
                                              </substitute>
                                              <substitute>
                                                <from>special://masterprofile/profiles.xml</from>
                                                <to>smb://192.168.2.186/Media/xbmc/userdata/profiles.xml</to>
                                              </substitute>
                                            </pathsubstitution>
13:12:00 T:5432 WARNING: VIDEO database configuration is experimental.
13:12:00 T:5432  NOTICE: Getting hardware information now...
13:12:00 T:5432  NOTICE: Checking resolution 12
13:12:00 T:5432  NOTICE: Default DVD Player: dvdplayer
13:12:00 T:5432  NOTICE: Default Video Player: dvdplayer
13:12:00 T:5432  NOTICE: Default Audio Player: paplayer
13:12:00 T:5432  NOTICE: Disabled debug logging due to GUI setting. Level 0.
13:12:00 T:5432  NOTICE: Log level changed to 0
13:12:00 T:5432  NOTICE: Loading media sources from special://masterprofile/sources.xml

And here is my advancedsettings.xml file:

Code:
<advancedsettings>
    <videodatabase>
        <type>mysql</type>
        <host>192.168.2.104</host>
        <port>3306</port>
        <user>xbmc</user>
        <pass>xbmc</pass>
    </videodatabase>

    <musicdatabase>
        <type>mysql</type>
        <host>192.168.2.104</host>
        <port>3306</port>
        <user>xbmc</user>
        <pass>xbmc</pass>
    </musicdatabase>
</advancedsettings>

<pathsubstitution>
    <substitute>
        <from>special://masterprofile/playlists/</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/playlists/</to>
    </substitute>

    <substitute>
        <from>special://masterprofile/addon_data/</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/addon_data/</to>
    </substitute>

    <substitute>
        <from>special://masterprofile/keymaps/</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/keymaps/</to>
    </substitute>

<substitute>
    <from>special://masterprofile/sources.xml</from>
    <to>smb://192.168.2.186/xbmc/userdata/sources.xml</to>
  </substitute>
  <substitute>
    <from>special://masterprofile/mediasources.xml</from>
    <to>smb://192.168.2.186/xbmc/userdata/mediasources.xml</to>
  </substitute>

    <substitute>
        <from>special://masterprofile/RssFeeds.xml</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/RssFeeds.xml</to>
    </substitute>

    <substitute>
        <from>special://masterprofile/favourites.xml</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/favourites.xml</to>
    </substitute>

    <substitute>
        <from>special://masterprofile/profiles.xml</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/profiles.xml</to>
    </substitute>
    
    <substitute>
        <from>special://masterprofile/Thumbnails/</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/Thumbnails/</to>
    </substitute>
</pathsubstitution>

The Thumbnails folder does exist on the share, as well as the sources.xml file.

I'm not sure where to go from here. I will update as soon as I can with a debug log if that will help.
The Debug Log may well give you (and us) some hints.
Here is my XBMC log with DEBUG on.

http://pastebin.com/fVQPeMY1

It never shows any errors as far as trying to connect to the share, it just completely ignores them.
I haven't been able to figure out what the problem is, but I have gone a different route that is working fine for me.

I did a symlink on each of the PCs to the Thumbnails share on the FreeNAS server. I also just copied the sources.xml file from the original machine after I added all of my sources to all the other machines. I rarely change sources so this will work fine for me.
(2012-03-25, 20:35)b1u3m3th Wrote: [ -> ]And here is my advancedsettings.xml file:

Code:
<advancedsettings>
    <videodatabase>
        <type>mysql</type>
        <host>192.168.2.104</host>
        <port>3306</port>
        <user>xbmc</user>
        <pass>xbmc</pass>
    </videodatabase>

    <musicdatabase>
        <type>mysql</type>
        <host>192.168.2.104</host>
        <port>3306</port>
        <user>xbmc</user>
        <pass>xbmc</pass>
    </musicdatabase>


</advancedsettings> Needs to be all the way at the bottom.



<pathsubstitution>
    <substitute>
        <from>special://masterprofile/playlists/</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/playlists/</to>
    </substitute>

    <substitute>
        <from>special://masterprofile/addon_data/</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/addon_data/</to>
    </substitute>

    <substitute>
        <from>special://masterprofile/keymaps/</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/keymaps/</to>
    </substitute>

<substitute>
    <from>special://masterprofile/sources.xml</from>
    <to>smb://192.168.2.186/xbmc/userdata/sources.xml</to>
  </substitute>
  <substitute>
    <from>special://masterprofile/mediasources.xml</from>
    <to>smb://192.168.2.186/xbmc/userdata/mediasources.xml</to>
  </substitute>

    <substitute>
        <from>special://masterprofile/RssFeeds.xml</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/RssFeeds.xml</to>
    </substitute>

    <substitute>
        <from>special://masterprofile/favourites.xml</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/favourites.xml</to>
    </substitute>

    <substitute>
        <from>special://masterprofile/profiles.xml</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/profiles.xml</to>
    </substitute>
    
    <substitute>
        <from>special://masterprofile/Thumbnails/</from>
        <to>smb://192.168.2.186/Media/xbmc/userdata/Thumbnails/</to>
    </substitute>
</pathsubstitution>

The Thumbnails folder does exist on the share, as well as the sources.xml file.

I'm not sure where to go from here. I will update as soon as I can with a debug log if that will help.

You have syntax error in your file. There should be </advancedsettings> at the beginning and the end of the file. Yours end right after the database section. Move the line to the bottom and try again.