Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Stale TV shows are not removed
#1
I use Kodi with libraries on a NAS accessed by NFS.

I remove some folders on my NAS by deleting them, but after a KODI library refresh, they still do appear in the TV Shows section.

Any idea?
Reply
#2
For starters, you are going the wrong way in deleting your TV shows.
If you delete them from the Kodi GUI directly, you should also get the option to remove the file(s) from your NAS/server.

If the TV Shows still appear after a clean action and a refresh, then you need to find the full path of a TV show that reappeared, and compare it to what the path used to be.
Reply
#3
How are you doing the library refresh? Just rescanning or doing a clean?

A rescan won't remove anything, you need to do a library clean. For that go to :

Settings > Media Settings > Library Tab > Video Library (in the right hand pane) and select Clean Library.

Note this option is only visible with settings level advanced or expert (switchable via the lower-left hand corner of the screen).

If you use removable media (USB or network) be a little careful as if it is not connected when you do a clean, you will be asked if you want to remove entries from it. If you select yes then those will be removed too.
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#4
Thanks
Reply
#5
(2020-05-05, 14:08)Klojum Wrote: For starters, you are going the wrong way in deleting your TV shows.
If you delete them from the Kodi GUI directly, you should also get the option to remove the file(s) from your NAS/server.

Kodi is just one way of watching my shows, it's the not the main way I manage my library.
Is there a way to automate the cleaning process?
Reply
#6
(2020-06-07, 18:19)gevrey Wrote: it's the not the main way I manage my library.

So what *is* the way that you manage your library?

(2020-06-07, 18:19)gevrey Wrote: Is there a way to automate the cleaning process?

You can do a library clean at the start of Kodi.
Or trigger the library clean via a crontab entry and using JSON.
But if you manage your library via an external program, that all might be useless.
Reply
#7
(2020-06-07, 19:58)Klojum Wrote:
(2020-06-07, 18:19)gevrey Wrote: it's the not the main way I manage my library.

So what *is* the way that you manage your library?
(2020-06-07, 18:19)gevrey Wrote: Is there a way to automate the cleaning process?

You can do a library clean at the start of Kodi.
Or trigger the library clean via a crontab entry and using JSON.
But if you manage your library via an external program, that all might be useless.
It happens that I delete folders directly from various clients, Windows explorer, Linux command line. 
I watch videos using VLC, using a STB on a TV, Kodi on my Android TV.

I set-up my library scan at Kodi startup, how can I do the same with a library clean?
Reply
#8
(2020-06-09, 09:03)gevrey Wrote: I set-up my library scan at Kodi startup, how can I do the same with a library clean?

See https://kodi.wiki/view/List_of_built-in_...ilt-in.27s
Reply
#9
Thanks - I see that "CleanLibrary(database)"

Now, I have no idea how to run it at startup on my Kodi installed on Android TV.

Do I need to do some geek stuff? 
Or can I do it with the GUI?

Regards
Reply

Logout Mark Read Team Forum Stats Members Help
Stale TV shows are not removed0