Kodi Community Forum

Full Version: path substitution issue ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I've recently set up a MySQL-Server to share my Kodi database with my upcoming new clients (amazon fire tv 4k, Linux Sat box, win 10 PC). I've decidede to do so mainly to try to reduce kodi size in the amazon stick (i do not want to us external usb).
I've  followed the wiki and I seems do mi that my kodi Nas database is working ok. I have quite big collection of movie an I' have realised that the my Thumbnails are over 1GB, which is t good for the amazon firestick and decided to try to use kodi path substitution feature to point to the NAS as well.

I 've copied the local Thumbnails directory from pc to the nas and then I've deleted all Thumbnails contents from my PC and from my other clients.

The issue I'am  experiencing is that not all the Thumbnails content seems to be consistence with my three devices, as some of them seems to be missing in each device. The missing ones are not the same in my devices.

Updating the libriaries or scraping the sources again does not help.

Here is my advancedsettings.xml

<advancedsettings>
  <videodatabase>
    <type>mysql</type>
    <host>192.168.0.125</host>
    <port>3306</port>
    <user>kodi</user>
    <pass>kodi</pass>
  </videodatabase> 
  <musicdatabase>
    <type>mysql</type>
    <host>192.168.0.125</host>
    <port>3306</port>
    <user>kodi</user>
    <pass>kodi</pass>
  </musicdatabase>
  <videolibrary>
    <importwatchedstate>true</importwatchedstate>
    <importresumepoint>true</importresumepoint>
  </videolibrary>
  <pathsubstitution>
  <substitute>
    <from>special://profile/Thumbnails/</from>
    <to>ftp://xxxxx:[email protected]:21/appdata/KodiBNMC-100/kodi/userdata/Thumbnails/</to>
  </substitute>
 </pathsubstitution>
</advancedsettings>

If notice some errors  in the log which has to do with Thumbnails creations that I do not understand. I' ve checked the nas directory with an external FTp ad it is possible to read and write in the Nas directory.
here is my log https://paste.kodi.tv/junixacoje.kodi

What I've done wrong ?
Regards
I guess I' ve found a partial answer myself by reading the wiki, but still I do not understand why I get the error since one my pc was connectet to my NAS.

My understanding now is that you need to tie the Thumbnails folder and the SQLite database Textures13.db for each device. Then if this is tha case, do you think that if I create three Thumbnails (one for each device) in my Nas and setting up path substitution so that each device will pont to his specific Thumbnails will work ?
The Thumbnails folder is a image cache for the device Kodi is running on, therefore it has to be unique to that client and not shared with any other clients. Not doing this will potentially cause problems such as you've found, so yes the solution is as you propose where you have a unque folder on the NAS for each client, so something like:

thumbnails_client1
thumbnails_client2
thumbnails_client3
etc

Then each client points to it's own unique folder on the NAS via path sub.
Thank you for yor reply. I've tried whit kodi on the pc first and path substitution seem to work as i deleted al Thumbnails *.jpg in my local folder and redirected to my NAS and I do see art grafs within each movie.

But I still see  the following errors in my log file:
2020-10-22 22:01:52.674 T:5464  NOTICE: CMediaSourceSettings: loading media sources from special://masterprofile/sources.xml
2020-10-22 22:01:52.691 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails
2020-10-22 22:01:52.691 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails
2020-10-22 22:01:52.691 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\Video
2020-10-22 22:01:52.691 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/Video
2020-10-22 22:01:52.692 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\Video\Bookmarks
2020-10-22 22:01:52.692 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/Video/Bookmarks
2020-10-22 22:01:52.692 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\0
2020-10-22 22:01:52.692 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/0
2020-10-22 22:01:52.692 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\1
2020-10-22 22:01:52.692 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/1
2020-10-22 22:01:52.692 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\2
2020-10-22 22:01:52.692 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/2
2020-10-22 22:01:52.692 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\3
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/3
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\4
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/4
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\5
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/5
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\6
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/6
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\7
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/7
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\8
2020-10-22 22:01:52.693 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/8
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\9
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/9
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\a
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/a
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\b
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/b
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\c
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/c
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\d
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/d
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\e
2020-10-22 22:01:52.694 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/e
2020-10-22 22:01:52.695 T:5464   ERROR: XFILE::CDirectory::Create - Error creating C:\Users\Antonello\AppData\Roaming\Kodi\userdata\Thumbnails\f
2020-10-22 22:01:52.695 T:5464   ERROR: XFILE::CDirectory::Create - Error creating special://masterprofile/Thumbnails/f


I stii believe that something is wrong.