advancedsettings.xml for kodibuntu and windows
#1
Hello everyone,

I hope someone can point me in the right direction. First my setup:
- FreeNAS 9.3 with SMB shares and MySQL in jail
- 2x Kodi 14.2 Stable on Windows
- 2x Kodi 14.2 Stable on KodiBuntu

I like to use MySQL and share all other settings so I created advancedsettings.xml.
On the Windows versions everything works perfect. But when I copy the advancedsettings.xml to the kodibuntu and restart the pc the Kodi logo is visible, after that the screen is black and hangs.
What can I have done wrong or do I missing something?

Here my XML

Code:
<advancedsettings>
    <videodatabase>
        <type>mysql</type>
        <host>192.168.2.210</host>
        <port>3306</port>
        <user>kodi</user>
        <pass>kodi</pass>
    </videodatabase>
    <musicdatabase>
        <type>mysql</type>
        <host>192.168.2.210</host>
        <port>3306</port>
        <user>kodi</user>
        <pass>kodi</pass>
    </musicdatabase>
    <videolibrary>
        <importwatchedstate>true</importwatchedstate>
        <importresumepoint>true</importresumepoint>
    </videolibrary>
    <pathsubstitution>
        <substitute>
            <from>special://profile/playlists/</from>
            <to>smb://192.168.2.200/data/kodi/userdata/playlists/</to>
        </substitute>

        <substitute>
            <from>special://profile/sources.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/sources.xml</to>
        </substitute>

        <substitute>
            <from>special://profile/mediasources.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/mediasources.xml</to>
        </substitute>

        <substitute>
            <from>special://profile/RssFeeds.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/RssFeeds.xml</to>
        </substitute>

        <substitute>
            <from>special://profile/favourites.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/favourites.xml</to>
        </substitute>

        <substitute>
            <from>special://profile/passwords.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/passwords.xml</to>
        </substitute>    
    </pathsubstitution>
</advancedsettings>



Regards Niels

BTW: sorry if the English is not correct I'm not a native speaker
Reply
#2
I think the MySQL part is correct. Have you tried to remove the pathsubstitutions? Just to see, if the issue might be there.
Reply
#3
Path substitution wont work for everything (it says so on the wiki) so that may explain some not working. However I would also try.

Code:
<advancedsettings>
    <videodatabase>
        <type>mysql</type>
        <host>192.168.2.210</host>
        <port>3306</port>
        <user>kodi</user>
        <pass>kodi</pass>
    </videodatabase>
    <musicdatabase>
        <type>mysql</type>
        <host>192.168.2.210</host>
        <port>3306</port>
        <user>kodi</user>
        <pass>kodi</pass>
    </musicdatabase>
    <videolibrary>
        <importwatchedstate>true</importwatchedstate>
        <importresumepoint>true</importresumepoint>
    </videolibrary>
    <pathsubstitution>
        <substitute>
            <from>special://profile/playlists/</from>
            <to>smb://192.168.2.200/data/kodi/userdata/playlists/</to>
            <from>special://profile/sources.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/sources.xml</to>
            <from>special://profile/mediasources.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/mediasources.xml</to>
            <from>special://profile/RssFeeds.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/RssFeeds.xml</to>
            <from>special://profile/favourites.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/favourites.xml</to>
            <from>special://profile/passwords.xml</from>
            <to>smb://192.168.2.200/data/kodi/userdata/passwords.xml</to>
        </substitute>    
    </pathsubstitution>
</advancedsettings>

I can see why you need to enclose each substitution separately. But then again never used it.
And try not to substitute everything and their mothers. Read the wiki.
Reply
#4
Hello David1977 and uNiversal,

Thank you for the reply.
I removed the pathsubstitution part and it's working now.
So, it's that part what is not working. I will also try the XML uNiversal proposed tonight, but I think I will use it whitout pathsubstitution. seems that this is not stable. Blush

Regards Niels
Reply
#5
It does say it clearly on the wiki in no uncertain terms, path substitution will not work in some cases, right along side the announcement that says its a experimental feature portion.
Quote:Note: This is considered an advanced (complicated) and experimental feature.

Path substitution is not officially supported for settings files with the exception of playlists. It probably won't hurt anything, but some things might not always work right depending on what you are substituting.

It would probably work better if the person who introduced this, would expand development of this and fix whatever bugs and maintain code. No idea who did or when this was done so I guess it is what it is.
Reply

Logout Mark Read Team Forum Stats Members Help
advancedsettings.xml for kodibuntu and windows0