Posts: 266
Joined: Dec 2011
Reputation:
2
2022-12-23, 17:34
(This post was last modified: 2022-12-23, 17:36 by kadeschs. Edited 2 times in total.)
I thought the Clean Library function was to remove items from the library that can't be found (either renamed, deleted, or on removable storage that is unplugged). So why is KODI still erroring on shows that I've recently removed from the library or old episode folders that I've deleted off the source hard drive after running the Clean Library function?
2022-12-23 10:26:48.186 T:11336 ERROR <general>: XFILE::CDirectory::GetDirectory - Error getting smb://192.168.1.252/TVShows/Big Sky (2020)/Season 2/
2022-12-23 10:26:48.205 T:11336 ERROR <general>: XFILE::CDirectory::GetDirectory - Error getting smb://192.168.1.252/TVShows/Fate The Winx Saga/Season 2/
2022-12-23 10:26:48.208 T:11336 ERROR <general>: XFILE::CDirectory::GetDirectory - Error getting smb://192.168.1.252/TVShows/Ghosts (US)/Season 2/
2022-12-23 10:26:48.213 T:11336 ERROR <general>: XFILE::CDirectory::GetDirectory - Error getting smb://192.168.1.252/TVShows/Judy Justice/Season 1/
2022-12-23 10:26:48.334 T:11336 ERROR <general>: XFILE::CDirectory::GetDirectory - Error getting smb://192.168.1.252/TVShows/UFO Witness/Season 01/
2022-12-23 10:26:48.337 T:11336 ERROR <general>: XFILE::CDirectory::GetDirectory - Error getting smb://192.168.1.252/TVShows/UFO Witness/Season 02/
2022-12-23 10:26:48.343 T:11336 ERROR <general>: XFILE::CDirectory::GetDirectory - Error getting smb://192.168.1.252/TVShows/Willow/Season 1/
2022-12-23 10:26:48.345 T:11336 ERROR <general>: XFILE::CDirectory::GetDirectory - Error getting smb://192.168.1.252/TVShows/You/Season 3/
Posts: 14,208
Joined: Nov 2009
Reputation:
711
Klojum
Lost connection
Posts: 14,208
2022-12-23, 17:45
(This post was last modified: 2022-12-23, 17:47 by Klojum. Edited 1 time in total.)
Just a question up front:
How are you removing items? Are you first manually wacking them off your file server, and hope for the best that Kodi does its job during the Video Clean process?
The simplest/best way is to remove the videos from the video library instantly using the Kodi context menus, and thus also subsequently confirm for the relevant files to be deleted from the Kodi GUI.
Also confirm that these folders do not suddenly have a some type of read-only status on them.
Error getting smb://192.168.1.252/TVShows/Big Sky (2020)/Season 2/
So the folder is still in the video database, but is nowhere to be found on your network folder. Seeing some other folders, this doesn't happen with earlier seasons ?
And yes, the Clean Video Database isn't perfect yet, but removing some simple paths should not be a big challenge.
Posts: 266
Joined: Dec 2011
Reputation:
2
2022-12-26, 17:37
(This post was last modified: 2022-12-26, 17:41 by kadeschs. Edited 2 times in total.)
I am also currently using the Library Auto Update addon. I had been using the Library Watchdog service for many years without issue. The Watchdog was absolutely awesome because it would update the library in real time, and I would never need to run the Update Libray command because the library always matched what I had on the NAS. However, the Library Watchdog started acting up recently and causing issues for no apparent reason so I had to settle for the Library Auto Update addon instead. My main issue here is that even though the Clean Library runs, it seems to be missing stuff. I have a similar advancedsettings as you posted.
<videolibrary>
<importwatchedstate>true</importwatchedstate> <!-- import previously exported playdate and playcount from .nfo files. Defaults to false -->
<importresumepoint>true</importresumepoint> <!-- import previously exported resume point from .nfo files. Defaults to false -->
<cleanonupdate>true</cleanonupdate> <!-- clean library during library update -->
<hideallitems>true</hideallitems> <!-- removes the "*All" items from the video library -->
<hideemptyseries>true</hideemptyseries> <!-- hide empty series in the video library -->
</videolibrary>
Posts: 676
Joined: Feb 2020
Reputation:
85
2024-11-01, 13:54
(This post was last modified: 2024-11-01, 14:07 by andrzejls. Edited 2 times in total.)
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?
Linux Mint 22.1 "Xia", Cinnamon DE
NVIDIA Shield Pro, OMV NAS, Kodi "Omega", FreeBSD "pfSense" Plus Firewall
Posts: 266
Joined: Dec 2011
Reputation:
2
Is the lack of user input on this topic have to do with users assuming the cleaner is already doing these type of functions and haven’t looked closely enough to realize that it isn’t? I also share my video database on MariaDB and made a lot of assumptions initially.