Kodi Community Forum
sources.xml substitute - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: sources.xml substitute (/showthread.php?tid=337043)

Pages: 1 2


sources.xml substitute - dkangel - 2018-10-30

Hi everybody

since kodi 18 beta 4 my substitute path for sources.xml not working anymore.

am i alone with this problem ? no one talk about this in the forum

thank you


RE: sources.xml substitute - trogggy - 2018-10-30

There's a note in the wiki to say pathsubs for sources are broken and won't be fixed.
I'm not sure exactly what's broken, as mine still work.


RE: sources.xml substitute - jjd-uk - 2018-10-30

If the sources.xml is on a password protected share then it's unlikely to work anymore, if you want to continue to do use a shared sources.xml then you'll have to put it on an share with no password protection.


RE: sources.xml substitute - dkangel - 2018-10-30

(2018-10-30, 14:12)jjd-uk Wrote: If the sources.xml is on a password protected share then it's unlikely to work anymore, if you want to continue to do use a shared sources.xml then you'll have to put it on an share with no password protection.
 i have no password on my shares...


RE: sources.xml substitute - jeffski10 - 2018-11-03

I've found this but only on the Windows build.  If I run on Libreelec it's fine.   Realised this was happening when my library scan started prompting for missing sources.


RE: sources.xml substitute - palindrom - 2018-11-30

Same issue. Still existing with 18.RC1. Windows 6 Android builds.

   <pathsubstitution>
        <substitute>
            <from>special://masterprofile/sources.xml</from>
            <to>nfs://192.168.1.250/_kodi/sources.xml</to>
        </substitute>
    </pathsubstitution>



RE: sources.xml substitute - trogggy - 2018-11-30

(2018-11-03, 21:52)jeffski10 Wrote: I've found this but only on the Windows build.  If I run on Libreelec it's fine.   Realised this was happening when my library scan started prompting for missing sources.
Same here, but given 'Path substition for "sources" and profiles is broken, and will NOT be fixed.'  I'd guess it's not (NOT) going to be fixed.
Just get rid of the path sub, it's not a big deal.


RE: sources.xml substitute - palindrom - 2018-11-30

I need an alternative to pathsubstitution, because I am using Kodi shared PC/Android TV/Android Tablets. 

Scanning the library and changing sources on the PC and sharing it to all devices (incl. MySYL DB) is essential to me.

An alternative could be:
    <system>
        <sourcepath>nfs://192.168.1.250/Videos/_kodi</sourcepath>
    </system>



RE: sources.xml substitute - trogggy - 2018-11-30

(2018-11-30, 17:11)palindrom Wrote: I need an alternative to pathsubstitution, because I am using Kodi shared PC/Android TV/Android Tablets. 

Scanning the library and changing sources on the PC and sharing it to all devices (incl. MySYL DB) is essential to me.

An alternative could be:
    <system>
        <sourcepath>nfs://192.168.1.250/Videos/_kodi</sourcepath>
    </system>
How often are you changing sources, and why?  I'm trying to understand why you'd need to do that often enough for it to be a pain.

Edit: and what the heck is a Windows 6 Android build Huh


RE: sources.xml substitute - jeffski10 - 2018-12-01

Quote:How often are you changing sources, and why?  I'm trying to understand why you'd need to do that often enough for it to be a pain.

Its just more annoying than anything as I have 4 devices all sharing the same central DB etc.  If I add/update/amend a source on one machine and then clean happens to run on another, all the content on the path is wiped out until the next import is run. So not critical clearly but a pain and was how I found it when a chunk of my library disappeared.


RE: sources.xml substitute - black_eagle - 2018-12-01

(2018-12-01, 13:03)jeffski10 Wrote:
Quote:How often are you changing sources, and why?  I'm trying to understand why you'd need to do that often enough for it to be a pain.

Its just more annoying than anything as I have 4 devices all sharing the same central DB etc.  If I add/update/amend a source on one machine and then clean happens to run on another, all the content on the path is wiped out until the next import is run. So not critical clearly but a pain and was how I found it when a chunk of my library disappeared. 
You only need a sources.xml on one machine.  Use that one machine to update/clean/amend your database(s) and all the others will automatically see the changes. Anything else just makes it more complicated and more prone to issues like you are seeing.  It's pointless (from my point of view) to run a library clean on (for instance) an android tablet when your PC will be faster and better equipped to handle the load.


RE: sources.xml substitute - jeffski10 - 2018-12-01

Agree on the fact that all updating has to occur on one machine - I've seen doubles in the library otherwise.   I tend to now just use FreeFileSync to make sure the latest files are on all clients so I don't need them centrally any more.


RE: sources.xml substitute - dkangel - 2019-01-09

so you think i can delete sources.xml on the "slave" kodi ?


RE: sources.xml substitute - Klojum - 2019-01-09

(2019-01-09, 22:07)dkangel Wrote: so you think i can delete sources.xml on the "slave" kodi ?
Rename it, restart Kodi, and find out.


RE: sources.xml substitute - robvh - 2019-01-21

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

15:22:11.147 T:139916419999872  NOTICE: -----------------------------------------------------------------------
15:22:11.147 T:139916419999872  NOTICE: Starting Kodi (18.0-RC5 Git:18.0rc5.2-Leia). Platform: Linux x86 64-bit
15:22:11.147 T:139916419999872  NOTICE: Using Release Kodi x64 build
15:22:11.147 T:139916419999872  NOTICE: Kodi compiled 2019-01-16 by GCC 8.2.0 for Linux x86 64-bit version 4.19.14 (267022)
15:22:11.147 T:139916419999872  NOTICE: Running on LibreELEC (official): 8.95.003 9.0, kernel: Linux x86 64-bit version 4.19.14
15:22:11.147 T:139916419999872  NOTICE: FFmpeg version/source: 4.0.3-Kodi
15:22:11.147 T:139916419999872  NOTICE: Host CPU: AMD E-350 Processor, 2 cores available
15:22:11.147 T:139916419999872  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi/
15:22:11.147 T:139916419999872  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi
15:22:11.147 T:139916419999872  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/kodi/addons
15:22:11.147 T:139916419999872  NOTICE: special://masterprofile/ is mapped to: /storage/.kodi/userdata
15:22:11.147 T:139916419999872  NOTICE: special://envhome/ is mapped to: /storage
15:22:11.147 T:139916419999872  NOTICE: special://home/ is mapped to: /storage/.kodi
15:22:11.147 T:139916419999872  NOTICE: special://temp/ is mapped to: /storage/.kodi/temp
15:22:11.147 T:139916419999872  NOTICE: special://logpath/ is mapped to: /storage/.kodi/temp
15:22:11.147 T:139916419999872  NOTICE: The executable running is: /usr/lib/kodi/kodi.bin
15:22:11.147 T:139916419999872  NOTICE: Local hostname: LibreELEC
15:22:11.148 T:139916419999872  NOTICE: Log File is located: /storage/.kodi/temp/kodi.log
15:22:11.148 T:139916419999872  NOTICE: -----------------------------------------------------------------------
15:22:11.156 T:139916419999872    INFO: loading settings
15:22:11.157 T:139916419999872  NOTICE: special://profile/ is mapped to: special://masterprofile/
15:22:11.190 T:139916419999872   DEBUG: CSkinSettings: no <skinsettings> tag found
15:22:11.190 T:139916419999872  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
15:22:11.191 T:139916419999872   DEBUG: CMediaSourceSettings:    Setting <default> source to : tvrecordings
15:22:11.198 T:139916419999872  NOTICE: Loaded settings file from special://xbmc/system/advancedsettings.xml
15:22:11.198 T:139916419999872  NOTICE: Contents of special://xbmc/system/advancedsettings.xml are...
                                            <?xml version="1.0" encoding="utf-8" ?>
                                            <advancedsettings>
                                              <cputempcommand>/usr/bin/cputemp</cputempcommand>
                                              <gputempcommand>/usr/bin/gputemp</gputempcommand>
                                              <showexitbutton>false</showexitbutton>
                                              <remotedelay>1</remotedelay>
                                              <samba>
                                                <clienttimeout>30</clienttimeout>
                                              </samba>
                                              <video>
                                                <latency>
                                                  <delay>0</delay>
                                                  <refresh>
                                                    <min>23</min>
                                                    <max>24</max>
                                                    <delay>175</delay>
                                                  </refresh>
                                                </latency>
                                              </video>
                                            </advancedsettings>
15:22:11.198 T:139916419999872 WARNING: CSettingsManager: missing version attribute
15:22:11.200 T:139916419999872  NOTICE: Loaded settings file from special://profile/advancedsettings.xml
15:22:11.201 T:139916419999872  NOTICE: Contents of special://profile/advancedsettings.xml are...
                                            <advancedsettings>
                                              <pathsubstitution>
                                                <substitute>
                                                  <from>special://profile/keymaps/</from>
                                                  <to>smb://sat.lan/KodiClient/userdata/keymaps/</to>
                                                </substitute>
                                                <substitute>
                                                  <from>special://profile/sources.xml</from>
                                                  <to>smb://sat.lan/KodiClient/userdata/sources.xml</to>
                                                </substitute>
                                                <substitute>
                                                  <from>special://profile/addon_data/</from>
                                                  <to>smb://sat.lan/KodiClient/userdata/addon_data/</to>
                                                </substitute>
                                              </pathsubstitution>
                                            </advancedsettings>
15:22:11.201 T:139916419999872   DEBUG: Configuring path substitutions
15:22:11.201 T:139916419999872   DEBUG:   Registering substitution pair:
15:22:11.201 T:139916419999872   DEBUG:     From: [/storage/.kodi/userdata/keymaps/]
15:22:11.201 T:139916419999872   DEBUG:     To:   [smb://sat.lan/KodiClient/userdata/keymaps/]
15:22:11.201 T:139916419999872   DEBUG:   Registering substitution pair:
15:22:11.201 T:139916419999872   DEBUG:     From: [/storage/.kodi/userdata/sources.xml]
15:22:11.201 T:139916419999872   DEBUG:     To:   [smb://sat.lan/KodiClient/userdata/sources.xml]
15:22:11.201 T:139916419999872   DEBUG:   Registering substitution pair:
15:22:11.201 T:139916419999872   DEBUG:     From: [/storage/.kodi/userdata/addon_data/]
15:22:11.201 T:139916419999872   DEBUG:     To:   [smb://sat.lan/KodiClient/userdata/addon_data/]