sources.xml substitute
#16
(2019-01-21, 16:44)robvh Wrote: kodi.log illustrates why path substitution won't work for sources.xml.  Message
NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
occurs before processing of special://xbmc/system/advancedsettings.xml and special://profile/advancedsettings.xml
Good spot.  It was the other way round in krypton.  Maybe there's a reason.
Reply
#17
Hi,

Does someone found an alternative to sources.xml path substitution ? I liked it. Yes i don't change sources every day but when i did it, i hadn't to worry about copy the file to my client.

Thanks
Reply
#18
Dear developers,

what led to this feature to be broken and why won't it be fixed?

I've been using path substitution for years now and it's an integral part of my setup across 4 different KODI installations on my network.


Greetings

Googlhupf
Reply
#19
(2019-03-19, 22:29)Googlhupf Wrote: what led to this feature to be broken

AFAIK, it's mostly network shares like Samba that now with SMBv2 require authentication.
Plenty of people report path substitution to still work, so it's a case of 'YMMV'.
Perhaps NFS is easier on your path substitutions than SMB is.

(2019-03-19, 22:29)Googlhupf Wrote: why won't it be fixed?
A simple case of lack of skilled developers & time plus other priorities.
Reply
#20
(2019-03-19, 22:35)Klojum Wrote:
(2019-03-19, 22:29)Googlhupf Wrote: what led to this feature to be broken

AFAIK, it's mostly network shares like Samba that now with SMBv2 require authentication.
Plenty of people report path substitution to still work, so it's a case of 'YMMV'.
Perhaps NFS is easier on your path substitutions than SMB is.
(2019-03-19, 22:29)Googlhupf Wrote: why won't it be fixed?
A simple case of lack of skilled developers & time plus other priorities. 

Thank you!

Googlhupf
Reply
#21
Thanks for the reply.

I hope there will be one day a fix or an alternative Smile
Reply
#22
(2019-03-19, 22:35)Klojum Wrote:
(2019-03-19, 22:29)Googlhupf Wrote: what led to this feature to be broken

AFAIK, it's mostly network shares like Samba that now with SMBv2 require authentication.
Plenty of people report path substitution to still work, so it's a case of 'YMMV'.
Perhaps NFS is easier on your path substitutions than SMB is. 
I'm not sure that's true any more (I was someone who reported it still working, post #2 in this thread).
Just tried with a simple sub and no joy:
Quote:<advancedsettings>
        <pathsubstitution>
            <substitute>
            <from>special://masterprofile/sources.xml</from>
            <to>special://masterprofile/test/sources.xml</to>
            </substitute>
        </pathsubstitution>    
</advancedsettings>
Looking in the log the reason is that sources.xml is now loaded before advancedsettings.xml, so any pathsub is read too late.
Maybe there's a good reason for that, more likely an oversight but if noone's interested in looking at it the result is the same.
Reply
#23
Hi guys,
i'm syncronizing all my Kodi Clients by DB on my Nas Qnap.

All its perfect. State of resume, library video, covers etc...

So advancedsettings.xml it's perfect, and i copy this in all my devices android.

I have problem on others files xml (favourites, password, source etc...)
I follow this guide :  https://kodi.wiki/view/MySQL/Sync_other_parts_of_Kodi

For example favourites.xml
 <substitute>
<from>special://profile/favourites.xml</from>
<to>PROTOCOL://YOUR_NETWORK_SHARE/kodi/userdata/favourites.xml</to>
</substitute>

in my case i must put file favourites.xml on every clients (not on nas, yes?) so composed :
 <substitute>
<from>special://C:\Users\PC Downloads\AppData\Roaming\Kodi\userdata/favourites.xml</from>
<to>nfs://markonas/films/favourites.xml</to>
</substitute>

and for example on android:
 <substitute>
<from>special://Android\data\org.xmbc.kodi\files\.kodi\userdata/favourites.xml</from>
<to>nfs://markonas/films/favourites.xml</to>
</substitute>

Sorry i'm confused.
advancedsettings.xml it's easy, copy same file in every client, but others xmls? how to do?
Reply
#24
Hi,

For my favourite file, I choosed a shared location on my main Windows PC (192.168.1.2), then I have only these lines on my advancedsettings file copied on this main PC and all my clients (Windows and Linux LibreElec) :

Code:
<pathsubstitution>
 <substitute>
    <from>special://profile/favourites.xml</from>
    <to>smb://192.168.1.2/G/Kodi/favourites.xml</to>
  </substitute>
</pathsubstitution>

I think that your problem, unless I'm mistaken, comes from the fact that you manually indicate the path to your userdata while the path special://profile/ is already used to do that automatically (from what I understand).

So I think your code should be:

Code:
<pathsubstitution>
 <substitute>
    <from>special://profile/favourites.xml</from>
    <to>nfs://markonas/films/favourites.xml</to>
  </substitute>
</pathsubstitution>
Reply

Logout Mark Read Team Forum Stats Members Help
sources.xml substitute0