(2024-10-05, 13:13)HeresJohnny Wrote: I'm no expert but there might be a problem if you connect clients based on mixed OS to a centralized database. Windows is case insensitve AFAIK whereas linux based OS willl be case senstive. If you have not taken care of this on database level appropriately and start deleting paths based on case you might or might not create a mess for yourself.
The problem already starts with what I regard a design flaw in Kodi where Windows created databases called "MyVideosxxx" and linux based creates databases called "myvideosxxx". Depending on the right (or wrong) circumstances you might already have created two databases...
@
HeresJohnny
Bellow is my post from this thread "https://forum.kodi.tv/showthread.php?tid=370915" post #13.
"Interesting add-on, "Kodi Selective Cleaner". So I got v1.0.7 (latest) and did some testing. It does clean some extraneous data in database, but....
My setup:
- Kodi 21.1 database MyVideos131 is in MariaDB running in Debian based Openmediavault NAS and used by 5 (five) kodi seats (3 on Nvidia Shield Pro 2019 and 2 on Firestick 4K MAX).
The scenario:
- Removing from Kodi TV Show or Movie using "Long press Enter or OK Button" --> MANAGE --> REMOVE FROM LIBRARY. I will use as an example "All.Creatures.Great.and.Small.1978" TV Show.
- SETTINGS --> MEDIA --> CLEAN LIBRARY. At this point that TV Show is cleaned in the database table "tvshow"
- Deleting this show from a drive designated and assigned to TV Shows in NAS so MariaDB does not see it when "Update Library is run in Kodi.
- Bring back this show to the drive that this show was originally on.
- When "Clean Library" was run from Kodi the Database table "path" is not cleaned (the tv show path is not removed), so when I run Update Library in Kodi that show is not recognized and is not scanned into the Database.
The workaround:
At this point I have to go into MariaDB using "dbeaver-ce" on one of me Linux boxes and remove this show entries in "path" table, so then it can be scanned back into Kodi database.
My hope was that this add-on will take of this issue but unfortunately it does not. I still think that it is a good attempt, "Kodi Selective Cleaner", but it falls short of being great, IMHO.
BTW, why Kodi SETTINGS --> MEDIA --> CLEAN LIBRARY is not cleaning library including table "path". Could this function be incorporated into future versions?"
I have been using above "workaround" for a long time and I did not notice any corruptions. I would love to see "Kodi Selective Cleaner" clean/remove entries in "path" table of movies and tvshows no longer listed in respective tables.
Regarding database name, Database that was created in MariaDB always was "MyVideoxxx"