(2020-05-31, 15:53)shred00 Wrote: I want to regularly clean out stale thumbnails. From what I understand I want the P option for that, and the p option is a "dry-run" version of that. Am I correct so far?
If by "stale" you mean thumbnails that are no associated with movies, tvshows or music (ie. thumbnails associated with YouTube videos and other accumulated dross) then yes - that's the correct option.
(2020-05-31, 15:53)shred00 Wrote: is there a more efficient way to run it for all profiles at once?
No, however you can retrieve a list of all profiles on the client using
texturecache.py profiles
which you could potentially parse and iterate over in a script.
(2020-06-01, 13:21)shred00 Wrote: Am I misunderstanding that P is the option to remove stale entries in Thumbnail/ directories? I ran:
bash:
$ texturecache.py P @profile.name=Foo
but thumbnails it listed in column 2 of it's output are still on the disk. Should they not be removed?
The "P" option should remove cached artwork from the
Thumbnails
folder that is not associated with any music/movies/tvshows in your media library. It will not remove original artwork from your media folders (in case that's what you think it should be removing).
The script will be asking Kodi to remove the cached artwork from the
Thumbnails
folder so if the removal is not succeeding then first thing to check would be the kodi log - perhaps there's a file permission problem.
Failing that, can you run (I'm assuming you are using Linux):
bash:
$ texturecache.py P @profile.name=Foo @logfile=/tmp/tc.log
and then if cached artwork still isn't being removed upload
/tmp/tc.log
somewhere (preferably zipped) and send me the link.
Also be aware that each profile will have it's own
Thumbnails
folder so make sure you're checking the correct folder after running the
P
option.