•   
  • 1
  • 175
  • 176
  • 177
  • 178
  • 179(current)
[RELEASE] Texture Cache Maintenance utility
@millhouse When cleaning, the castthumbs are always deleted, although I have activated them in the setting. What am I doing wrong?

Code:
python texturecache.py P @profile.name=Parents

texturecache.cfg
Code:
#userdata = ~/.xbmc/userdata/
#dbfile = Database/Textures13.db
#thumbnails = Thumbnails/
xbmc.host = localhost
webserver.port = 8080
rpc.port = 9999
download.threads = 3
#extrajson.albums  =
#extrajson.artists =
#extrajson.songs   =
#extrajson.movies  =
#extrajson.sets    =
#extrajson.tvshows.tvshow =
#extrajson.tvshows.season =
#extrajson.tvshows.episode=
#qaperiod = 30
#qa.file = no
query.seasons = yes
query.episodes = yes
cache.castthumb = yes
cache.extra = yes
prune.retain.previews = yes
prune.retain.pictures = yes
prune.retain.chapters = yes
#logfile =
#logfile.verbose = no
#network.mac = aa:bb:cc:dd:ee:ff
checkupdate = yes
orphan.limit.check = no

Code:
Command line args: ['texturecache.py', 'c', '@profile.name=Parents']
Current version #: v2.5.1
Current platform : win32
Python  version #: v3.7.4.0 (final)
Reply
I don't know how you've populated the "Parents" media library, or corresponding texture cache. Is the "Parent" profile separate or shared? If separate, were the "Parent" libraries copied from "master" (default) or created from scratch?

If you copied from master, maybe the cached cast artwork isn't present in the "Parents" media library. Check you have enabled "Download actor thumbnails" in Settings > Media > Videos for the "Parents" profile.

Failing that, a logfile (@logfile=tc.log) for the p prune command should help explain what is occurring (lowercase p won't remove anything, but will instead list what it would have deleted). I'll need the entire log file, so probably best to zip it and upload it somewhere.

Note that the cache.castthumb option only dictates whether the script will cache cast artwork (if there are references to the cast artwork in your media library). In the texture cache there's no way to tell a cast artwork from a poster - all cached artwork is just a "thumbnail" without any specific type (ie. poster, fanart, cast etc.) - so there's no way to prevent removal of a thumbnail that happens to be a cast artwork, apart from adding a regex to prune.retain.types - if all your cast artwork is hosted on imdb.com then adding prune.retain.types=http://ia.media-imdb.com might stop unreferenced cast artwork from being removed.

But adding the missing references (ie. fixing the underlying issue) might be easier.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
(2019-10-15, 12:24)Milhouse Wrote: I don't know how you've populated the "Parents" media library, or corresponding texture cache. Is the "Parent" profile separate or shared? If separate, were the "Parent" libraries copied from "master" (default) or created from scratch?
The parent profile is my master profile ("Eltern" in German), I just renamed it. Strangely enough, the cast thumbs are not deleted from the second "Children" ("Kinder" in German) profile, which I created as an additional standalone separated profile (python texturecache.py p @profile.name=Children).
Quote:If you copied from master, maybe the cached cast artwork isn't present in the "Parents" media library. Check you have enabled "Download actor thumbnails" in Settings > Media > Videos for the "Parents" profile.
I had already activated this option.
Quote:Failing that, a logfile (@logfile=tc.log) for the p prune command should help explain what is occurring (lowercase p won't remove anything, but will instead list what it would have deleted). I'll need the entire log file, so probably best to zip it and upload it somewhere.
Ok, there is my log file:
log.zip
Quote:Note that the cache.castthumb option only dictates whether the script will cache cast artwork (if there are references to the cast artwork in your media library). In the texture cache there's no way to tell a cast artwork from a poster - all cached artwork is just a "thumbnail" without any specific type (ie. poster, fanart, cast etc.) - so there's no way to prevent removal of a thumbnail that happens to be a cast artwork, apart from adding a regex to prune.retain.types - if all your cast artwork is hosted on imdb.com then adding prune.retain.types=http://ia.media-imdb.com might stop unreferenced cast artwork from being removed.
If the root cause can't be found, I should try that, shouldn't I?
prune.retain.types=/.actors/.*


Update:
I have just seen that with selected "Parent" profile also thumbnails of children medias (e.g. episode thumbnails) should also be deleted, but they are not present in the parent profile at all, these media files were never added by me to the library in the parent profile!

Is it possible that Kodi gets confused internally when using profiles, or was it because I cached the textures before? But also here I strictly separated the profiles:

First -> python texturecache.py c @profile.name=Parents
Second -> python texturecache.py c @profile.name=Children
Reply
Sorry for taking so long to reply. I've just downloaded your log.zip, but it looks like you've reformatted it (pretty printed the JSON data) which has kind of made it a bit useless to me as I need it in the original raw format - the texturecache.py script has a @replayfile option which takes the log file as input and allows me to reproduce and debug your data as though it were my data (assuming the log hasn't been tampered with...).

Any chance you can run the command again, and upload the unmodified log file?
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
  •   
  • 1
  • 175
  • 176
  • 177
  • 178
  • 179(current)
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average



Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility4.7617