Running Kodi from NAS
#1
Hi there all,

First of, I wish everybody a fantastic and healthy new year.
Second and the reason for posting: I'm trying to find a way so I can have Kodi running from every system (Android and Windows) with the same setup, addons, etc. I would like to redirect the Kodi to look for the addons, data, etc. on my NAS (QNAP), that way it'll all sync and no system should have a different setup.

This what I've done so far as to change the advancedsettings.xml on every system, note that Kodi has access to my MySQL-database. Not all addons will sync, did I miss something, is my approach the most logic or is there an addon that will provide me with a sollution that I'd like, etc.

Code:
<advancedsettings>
  <videodatabase>
    <type>mysql</type>
    <host>192.168.0.10</host>
    <port>3306</port>
    <user>xbmc</user>
    <pass>xbmc</pass>
    <name>KODI-video</name>
  </videodatabase>
  <musicdatabase>
    <type>mysql</type>
    <host>192.168.0.10</host>
    <port>3306</port>
    <user>xbmc</user>
    <pass>xbmc</pass>
    <name>KODI-music</name>
  </musicdatabase>
  <videolibrary>
    <importwatchedstate>true</importwatchedstate>
    <importresumepoint>true</importresumepoint>
  </videolibrary>
  <pathsubstitution>
     <substitute>
      <from>special://masterprofile/Thumbnails/</from>
      <to>smb://192.168.0.10/Kodi/Thumbnails/</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/playlists/</from>
      <to>smb://192.168.0.10/Kodi/playlists/</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/addon_data/</from>
      <to>smb://192.168.0.10/Kodi/addon_data/</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/keymaps/</from>
      <to>smb://192.168.0.10/Kodi/keymaps/</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/sources.xml</from>
      <to>smb://192.168.0.10/Kodi/sources.xml</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/mediasources.xml</from>
      <to>smb://192.168.0.10/Kodi/mediasources.xml</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/RssFeeds.xml</from>
      <to>smb://192.168.0.10/Kodi/RssFeeds.xml</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/favourites.xml</from>
      <to>smb://192.168.0.10/Kodi/favourites.xml</to>
     </substitute>
     <substitute>
      <from>special://profile/Thumbnails/</from>
      <to>smb://192.168.0.10/Kodi/Thumbnails/</to>
     </substitute>
     <substitute>
      <from>special://profile/playlists/</from>
      <to>smb://192.168.0.10/Kodi/playlists/</to>
     </substitute>
     <substitute>
      <from>special://profile/addon_data/</from>
      <to>smb://192.168.0.10/Kodi/addon_data/</to>
     </substitute>
     <substitute>
      <from>special://profile/keymaps/</from>
      <to>smb://192.168.0.10/Kodi/keymaps/</to>
     </substitute>
     <substitute>
      <from>special://profile/sources.xml</from>
      <to>smb://192.168.0.10/Kodi/sources.xml</to>
     </substitute>
     <substitute>
      <from>special://profile/mediasources.xml</from>
      <to>smb://192.168.0.10/Kodi/mediasources.xml</to>
     </substitute>
     <substitute>
      <from>special://profile/RssFeeds.xml</from>
      <to>smb://192.168.0.10/Kodi/RssFeeds.xml</to>
     </substitute>
     <substitute>
      <from>special://profile/favourites.xml</from>
      <to>smb://192.168.0.10/Kodi/favourites.xml</to>
     </substitute>
    </pathsubstitution>
</advancedsettings>
Reply
#2
From the reading I have done, It's not recommended to sync absolutely everything across all installs as some settings are unique to each client.
4x R-Pi4b LibreELEC v10 | Aeon Nox: SiLVO | Flirc cases
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.4.19 | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
Reply
#3
Code:
<substitute>
      <from>special://masterprofile/addon_data/</from>
      <to>smb://192.168.0.10/Kodi/addon_data/</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/keymaps/</from>
      <to>smb://192.168.0.10/Kodi/keymaps/</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/sources.xml</from>
      <to>smb://192.168.0.10/Kodi/sources.xml</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/mediasources.xml</from>
      <to>smb://192.168.0.10/Kodi/mediasources.xml</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/RssFeeds.xml</from>
      <to>smb://192.168.0.10/Kodi/RssFeeds.xml</to>
     </substitute>
     <substitute>
      <from>special://masterprofile/favourites.xml</from>
      <to>smb://192.168.0.10/Kodi/favourites.xml</to>
     </substitute>
     <substitute>
      <from>special://profile/Thumbnails/</from>
      <to>smb://192.168.0.10/Kodi/Thumbnails/</to>
     </substitute>
     <substitute>
      <from>special://profile/playlists/</from>
      <to>smb://192.168.0.10/Kodi/playlists/</to>
     </substitute>
     <substitute>
      <from>special://profile/addon_data/</from>
      <to>smb://192.168.0.10/Kodi/addon_data/</to>
     </substitute>

Looking at your file, you have addon_data twice (top and bottom of the bit pasted above), did you mean addons instead?
4x R-Pi4b LibreELEC v10 | Aeon Nox: SiLVO | Flirc cases
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.4.19 | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
Reply
#4
I've read the reasons why not to have everything centralised, all my Kodi installations have the same versionnumber. The reason I would like to have it centralised is because some addons (mostly unsupported) will mark something as viewed, it would be nice if all Kodi installations will show that something as viewed. Another thing is that I would like to install all addons on one location and every Kodi installation will run (or better install) every addon from there.

About the addon_data remark, thanks for spotting that, will try changing that.
Reply
#5
has there been any.. uhm.. improvements in this subject? i can't find other threads..
Reply
#6
This kind of installation tends to be our code packaged up and made available by the NAS retailer themselves.

They aren't platforms we directly support, so we're not the best people to ask on the subject.

There are ways to share information between installs (mySQL, path substitution etc) as already mentioned, but none of them are by any means perfect.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply

Logout Mark Read Team Forum Stats Members Help
Running Kodi from NAS0