Posts: 18,060
Joined: Aug 2007
Reputation:
689
Hitcher
Team-Kodi Member
Posts: 18,060
As said, you need to delete the show using the context menu otherwise Kodi keeps it in the DB because there could be more episodes added in the future.
Posts: 83
Joined: Jan 2015
Reputation:
2
Ok this does work but a little clunky.
I re created a folder, created a fake file and scanned to find a new episode.
Then inside kodi I 'removed it' from the library.
Then went to my NAS and deleted the folder along with contents and now I can't see it.
Can we not just set it so if the file and folder no longer exist remove it from the library...?
Posts: 3,627
Joined: Sep 2009
Reputation:
118
Is there any non GUI way to completely remove empty TV shows? Kodi hanging on to things I have long since nuked just in case more might come along later is...irritating.
I suppose I could write an addon to look for them but it seems overkill really - if a show re-appears later, Kodi should just add it back then. I presume the idea is to not lose watched history, but there's better solutions to that (Trakt etc) than Kodi forever hanging on to stubs of everything you've ever watched...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 3,627
Joined: Sep 2009
Reputation:
118
No - I have my watched history backed up in Trakt, so I don't need Kodi to do that (talking about shows where there are no episodes anymore)...what I want is for shows that are absent on disk to become absent in Kodi.
As in - when I remove a movie, Kodi doesn't hang on to it, right? I don't really see why TV shows should be different. I know you can 'hide empty shows' but it just bugs me that if I neglect to set that, e.g. on a new client, suddenly I have like 100+ entries of shows going back years and years I have long since lost interest in.
It's really not a big deal, at all, it'd just it would be nice if a more thorough clean were possible...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 18,060
Joined: Aug 2007
Reputation:
689
Hitcher
Team-Kodi Member
Posts: 18,060
Make sure all the TV folders are removed, export your library to separate files, delete the video database, rescan to your library making sure you have added <importwatchedstate>true</importwatchedstate>
to your advancedsetting.xml. In future remove the show from the library using the context menu when you're done with it.