2022-10-15, 19:07
I Had only stated the version not a literal name. MYSQL is not file based anyway.
(2022-10-15, 19:07)HeresJohnny Wrote: I Had only stated the version not a literal name. MYSQL is not file based anyway.
(2022-10-15, 20:58)jbinkley60 Wrote: One thing I am curious about is if you are running MySQL across both of your Kodi 19 and 20 setups ?
(2022-10-16, 01:21)Klojum Wrote: Uhm.. I'm mostly AFK this weekend so testing the add-on hasn't really started yet. But regarding MySQL support: Kodi's default databases for MySQL/MariaDB is MyVideosXXX and MyMusicXX. Users can also specify their own video and music database names via the advancedsettings.xml. However, Kodi will always add the current version sequence number to that user-selected database name. E.g., "myfirstvideodatabase" will become "myfirstvideodatabase119" for Kodi 19.
I'll also find out soon enough if the add-on is profile-friendly. That will probably be fine.
(2022-10-16, 02:20)jbinkley60 Wrote: If I find a bunch of folks using nonstandard database naming for normal Kodi databases I may add options for users to select their database video, music and textures DB files.User selected database names only apply to MySQL/MariaDB connections. Links/names to any of the local databases cannot be changed.
(2022-10-15, 22:21)HeresJohnny Wrote: Sure, that has never been a problem. Kodi creates db versions as needed with the correct name and accesses the correct version as needed depending on the client version. In my case the VideoDB versions are 119 for Kodi19 (Windows client) and 121 for Kodi20 (Windows and CoreELEC clients).
I see now that it only worked in my Kodi 19 because empty SQlite databases existed there locally. So my test with actor tables was really inconclusive. For a possible setup to switch write access between SQLITE and MYSQL see default.py in this cleaner add-on.
(2022-10-18, 14:34)Klojum Wrote: The backup of a locale SQLite video database only get the time part (hhmmss) of a datetime stamp, and no date... e.g. 141926_MyVideos119
The two "Unknown" seasons of a TV show are probably the "-1" season for the TV show root path, and the "0" season for any specials.
"Episode table ratings unmatched" for a small number of episodes...
"Files table streamdetails unmatched" for a bigger number of files...
Not sure yet what these mean.
(2022-10-18, 17:28)Klojum Wrote: Orphaned records to me are those database entries to which no actual files are present on a video or music source. Analyzing certain tables on their own (e.g. actor_links) is kinda besides the point. You can see in my "cleanup tool script", that upto 18 tables can be linked to a single TV episode. I would check for the presence of the physical video (or music) file, and if non-existent, remove all related data from any related tables as well as the Textures13.db and its thumbnail(s). Having to examine tables individually as now seems to be the case is too technical for the average HTPC user and too tedious and approaching the problem from the wrong angle IMO.
The database should reflect to the contents that is available via the source(s). Anything that is no longer there on disk or wherever should be cleansed 'in an easy manner' from the database.
(2022-10-19, 00:20)jbinkley60 Wrote: One question with the textures table is whether there is interest in coming the other direction (i.e. orphaned texture records and underlying files in the textures table ? That could get quite complex since other addons can cause texture files.
(2022-10-19, 03:52)HeresJohnny Wrote:(2022-10-19, 00:20)jbinkley60 Wrote: One question with the textures table is whether there is interest in coming the other direction (i.e. orphaned texture records and underlying files in the textures table ? That could get quite complex since other addons can cause texture files.
You seem to be wanting to implement some functionality that exists in another add-on, KCleaner. Maybe check their code if you can use anything, see HERE. While that add-on works in its current state the author doesn't seem to be active anymore and it's always best to support active authors.