Well, I'm using profiles since ever and I have different sources for them without any problems. I most likely use one profile for my already scraped movies (local nfos) and another profile with another source for those movies I would like to scrape. Each profile will have its own separated database in its userdata folder (or in the "profiles/<name_of_profile>"-folder for the specific profile).
The only usecase I could think of where an advancedsettings.xml might confuse profiles is, if there's a MySQL database in use. Using profiles with a MySQL which has different content requires a different database inside that MySQL instance. Therefore the
<name>name_of_db</name>
-tag can be used for MySQL DBs. So every profile can be pointed to its own MySQL DB and can be used on different Kodi clients (tested with a MySQL installed on a Pi in my network and different Kodi clients with different profiles to share whatched-states between Kodi clients and profiles).
See:
https://kodi.wiki/view/Advancedsettings....eodatabase
But I guess that's not the case in here or the OP forget to mention that.
(2020-09-19, 17:33)DarrenHill Wrote: [ -> ]What happens is that the master profile is always loaded first, and then any selected sub-profile is loaded afterwards. If you look in the debug log (wiki) for example for a configuration that has an advancedsettings.xml (wiki) file for both the master and the sub-profile, you will see both being loaded in turn (master first, then sub-profile).
That's not 100% true (or I might have misunderstood). Only if you are using a login-screen at startup, then the master-advancedsettings.xml is loaded ALWAYS!!! No other advancedsettings.xml is loaded then. And if you then select the other profile, then the other profile-advancedsettings is loaded. But Kodi does not load every advancedsettings.xml from every profile on startup. You can also observe that if you enable debug logging for the master profile but not for the 2nd profile in use. If you are at the login-screen, there's
always the log-overlay shown. But if you then select the 2nd profile (where debug logging is disabled) that overlay is gone as Kodi loads another guisettings.xml then and overwirtes what exists before. But while using the login-screen, the master-guisettings and master-advancedsettings are loaded. But ....
That won't happen if you don't setup a login-screen on startup and let Kodi load the last-used profile. Then, only the advancedsettings.xml of that last-used profile is loaded. But anyway...
beside using a mysql DB, the advancedsettings should not have any effect of separating databases. I just can tell that I'm using that since XBMC without any problems.
This is how the log looks like if I let Kodi load the master profile as "last-used"-profile:
Code:
2020-09-19 18:25:20.004 T:14265 INFO <general>: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
<videolibrary>
<recentlyaddeditems>20</recentlyaddeditems>
</videolibrary>
</advancedsettings>
This is how it looks for the other profile:
Code:
2020-09-19 18:34:01.588 T:14776 INFO <general>: Contents of special://profile/advancedsettings.xml are...
<advancedsettings>
<videolibrary>
<recentlyaddeditems>35</recentlyaddeditems>
</videolibrary>
</advancedsettings>
See "20" to "35" for recentlyaddeditems.
And only one of each is loaded. Beside I switch the profile. Then the log will show that another one is loaded. But that does not mean something is inherited. Because if I load the 2nd profile first (which has 35 recently added items) and I delete the advancedsettings.xml from my master profile before starting Kodi, the 2nd profile still shows 35 items. If I then swith to the master profile (which doesn't have any advancedsettings.xml anymore), the master profile shows the default for that setting (which is 25).
So there's no inheritance beside you set that up while creating the profile. I'll add screenshots in the next posting