Kodi Community Forum

Full Version: Pathsubstitution doesn't work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5
I have shared everything on my network through NFS. Pretty sure this used to work at some point, but now it doesn't:
Code:

<pathsubstitution>
<substitute>
<from>special://profile/sources.xml</from>
<to>nfs://192.168.1.185/TV-Movie2/Software/Kodi/sources_nfs.xml</to>
<from>special://profile/favourites.xml</from>
<to>nfs://192.168.1.185/TV-Movie2/Software/Kodi/favourites.xml</to>
</substitute>
</pathsubstitution>

All shares are added locally under /userdata and are not taken from where I've substituted.
What does the debug log (wiki) say? If you can upload it to a pastebin site and post the link here we can also check.
Pathsubstition of sources is not recommended and will not be fixed.
Here it is https://pastebin.com/13Kg5cP2

I was just analysing it myself and realize now the problem is different from what I thought. The pathsubstitution works, but the sources are not shown in Kodi. Under Media-Video-Sources there is no entry. However, I have run a library update for Videos and Kodi (today's nightly on Windows 64) walks through it normally.
And does it work if you use the file locally, with regard to Martijn's comment above?
(2018-10-11, 10:11)Martijn Wrote: [ -> ]Pathsubstition of sources is not recommended and will not be fixed.

That is the first I hear of it. Is that your personal opinion or the official statement for Team Kodi?

Then you should discourage all users from using MySQL and update the Wiki accordingly
here https://kodi.wiki/view/MySQL/Sync_other_parts_of_Kodi
and here https://kodi.wiki/view/MySQL/Setting_up_Kodi
It already is here on the actual wiki page for path subs - Path substitution (wiki). See just above section 1.1
That's a shame because it's keeping KODI from becoming a true centralized Mediacentre.
(2018-10-11, 10:50)DarrenHill Wrote: [ -> ]It already is here on the actual wiki page for path subs - Path substitution (wiki). See just above section 1.1
Is this new for leia?
'This page was last edited on 11 October 2018, at 08:39.'
It would be interesting to know what's broken, because I use a local (special) pathsub for sources and it appears to be working normally on the latest nightlyHuh
I think (if my ailing memory serves) it's more the scenario of the file being on a slow or protected remote source itself and failing to be read, or in a few cases the routing needed to access the remote source is in the file itself (the safe key ending up locked in the safe).

There are scenarios where it works, but it's not reliable enough to be recommended.
(2018-10-11, 13:20)DarrenHill Wrote: [ -> ]I think (if my ailing memory serves) it's more the scenario of the file being on a slow or protected remote source itself and failing to be read, or in a few cases the routing needed to access the remote source is in the file itself (the safe key ending up locked in the safe).

There are scenarios where it works, but it's not reliable enough to be recommended.
Thanks.  Same as it's always been then.  Phew.
It might be worth someone adding a similar note about favourites to the wiki.  Since Leia sharing favourites.xml doesn't work.
From what I remember the issue was to do with password protected shares, if your shares are not password protected then you maybe fine.
It's about path substitution for passwords.xml that's located on a password protected location.

Next up will be profiles being ripped out and redone completely
Path substitutions worked great for me. What function/feature is replacing it so that multiple Kodi installs can be easier to managed?
(2018-10-11, 10:38)HeresJohnny Wrote: [ -> ]Then you should discourage all users from using MySQL and update the Wiki accordingly
here https://kodi.wiki/view/MySQL/Sync_other_parts_of_Kodi
and here https://kodi.wiki/view/MySQL/Setting_up_Kodi 
 Agreed. Why bother recommending a solution that isn't supported from the beginning and is not being maintained/fixed.
Pages: 1 2 3 4 5