Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Beta Kodi 21 beta 3 - Library not cleaning up
#1
Hi
I have an issue with my library not cleaning up.

Preconditions:
Kodi 21 actual nightly
External Database via advancedsettings.xml

- Delete a TV show from the storage
- Run cleanup library via Kodi settings
- Result: TV-show is still listed in the library and needs to be deleted manually (not tested for movies and music yet)

Anything I can adjust, to get rid of this behavior?

Update: Now tested with standard setup. Without external database.
Movies: Deleted item is cleaned from library
TV-Shows: Deleted items remain listed
Music: Deleted items remain listed
Reply
#2
That is expected behaviour. No setting will change that.

You need to delete the show from Kodi first.
Imagine users with removable hard drives that they forget to plug in, or Windows has swapped drive letters. They run a Clean Library and part or all of their library is deleted.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#3
Movies are deleted and removed from the library by "clean library"
TV-Shows are not deleted from the library by "clean library"

I don't get why this shall be intended behavior(?)
Reply
#4
Episodes are removed from clean library but not TV shows. I think the reason may also be because TV shows are ongoing.
Reply
#5
Honestly I think the function is broken.

If I want to delete my removed files from the library - it's not working, because garbage is left listed

If I want to keep my library intact, once i press "clean library" by accident while a drive is disconnected - it's not working, because most of the library is deleted anyway
Reply
#6
Actually if a source is unavailable you'll get a message asking if you want to remove or keep the items in it.

Image

EDIT: Not sure why I can't link an image from the wiki.
Reply
#7
Yes, with this warning function you mentioned the user will not delete library items from disconnected devices by accident.

If all devices are present, the "clean library" function should remove all items which are deleted/not present anymore.

Actually it's just cleaning some parts and leaves others partially in the library.
From my perspective wrong, or at least not consistent /as expected.

I'm pretty sure previous versions of Kodi cleaned the library consistently and completely.
That's why I'm considering this function as broken (at least in v20 and v21, not checked the older versions in detail yet).
Reply
#8
(2024-02-25, 14:02)guenzelsen Wrote: If all devices are present, the "clean library" function should remove all items which are deleted/not present anymore.
All files (movie and episode) that are no longer present are removed from the library.
(2024-02-25, 14:02)guenzelsen Wrote: I'm pretty sure previous versions of Kodi cleaned the library consistently and completely.
That's why I'm considering this function as broken (at least in v20 and v21, not checked the older versions in detail yet).
It's always been this way.
Reply
#9
"Clean Library" has never, on the video side of things, actually cleaned the library properly.  That's why there are addons that do a better job of cleaning it than Kodi does itself.

Music library cleaning is better, but if you re-scan a source that is offline or otherwise unavailable, then the scanner will remove all the music in that source.  EG, if your music library is on some sort of connectable drive (usb or network drive) and it's offline when you re-scan, then the whole music library will be removed.
Learning Linux the hard way !!
Reply
#10
@Hitcher:
Actually it is not
Please kindly refer to my initial posting.

This was tested and verified from my side with a clean installation and a clean database.

Do you come to another result in your test environment?
Maybe something with my setup is screwed up.

@black-eagle:
I put two music artist folders with one album each to my test drive.
Scanned it to my library.
Deleted one of the artist folders.
Cleaned the library.
The deleted artist/album is still present in the library.
Reply
#11
(2024-02-25, 14:44)guenzelsen Wrote: Actually it is not
Please kindly refer to my initial posting.
A TV show isn't a file though; an episode is.
Reply
#12
It's not "clean files" function, it is "clean library" function.
A TV-show is a library item.
Reply
#13
And as I said all episodes are removed but the TV show itself remains because TV shows are ongoing.

To remove a TV show you must remove it in Kodi - that's just the way it's always been.
Reply
#14
(2024-02-25, 15:00)Hitcher Wrote: To remove a TV show you must remove it in Kodi - that's just the way it's always been.

as outlined here https://kodi.wiki/view/Updating_or_remov...om_Library
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 21 beta 3 - Library not cleaning up0