Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
2013-09-15, 00:02
(This post was last modified: 2013-09-15, 18:01 by Milhouse.)
That would be because the database refers to the jpg, not the dds.
Not sure what has happened here - have the jpg files been wiped from the thumbnails folder at some point, and now only the dds files remain?
Your point is valid though - when removing the artwork file from the thumbnail folder, it should also check if there is a dds file and remove that too. Although it should still warn when the jpg is missing.
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.
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
I can't comment on the validity of the code as I'm not a Windows batch expert, but the general principle looks OK.
In the comment you mention only caching movies but will in fact be re-caching pretty much everything - change "texturecache.py c" to "texturecache.py c movies" to cache only movies, or even "texturecache.py c video" to cache only video related artwork (movies + sets + tvshows).
If you're running this on a regular basis you may want to try the "incremental" caching option, lc rather than c, which will only re-cache items added since the timestamp of the file specified by the property lastrunfile. At the end of your batch script, touch the lastrunfile to record a new timestamp.
Note also that texturecache.py doesn't fix (or clean) anything with respect to paths that have been mangled by Movie Set Artwork Automator, it is just is a bit more tolerant of such path mangling.
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.