[RELEASE] Texture Cache Maintenance utility
I have a very specific issue for a very unique situation. Smile

Background:
I have all movies on external drives that get plugged-in when a movie on that drive is watched, and then unplugged the rest of the time. I scan-in/cache all artwork using texturecache.py. I also have the appropriate switches in texturecache.cfg to enable caching of extrafanart and extrathumbs.

Problem:
Weirdly enough, after scanning and caching all artwork using texturecache.py and then unplugging the drive, both extrafanart and extrathumbs are not shown in XBMC. However, when the drive is plugged back in, both the extrafanart and extrathumbs are shown and (improperly) cached.

Workflow:
1. Check texturecache.cfg settings (LINK) and folder structure (LINK).
Also, the movie database and thumbs cache is entirely empty except for the movie run in this test. Everything is fresh.

2. Plug hard drive in / Scan video into library
Code:
texturecache.py vscan movies "G:\Hard Drive 0\Movies - Kids\A Bugs Life [1998]"
vscan LOG

3. Adding Artwork
Code:
texturecache.py jd movies | tools\mklocal.py --singlefolders --local "G:\Hard Drive 0\Movies - Kids\A Bugs Life [1998]" --prefix "G:\Hard Drive 0\Movies - Kids\A Bugs Life [1998]" --artwork poster fanart clearlogo clearart discart characterart:character banner landscape --verbose --output | texturecache.py set
mklocal.py LOG

4. Caching Artwork
Code:
texturecache.py c
cache LOG

5. Unplug External Drive / Check Artwork
Code:
texturecache.py jd movies "Bug"
texturecache.py s "Bug"
check artwork with drive unplugged LOGS
As the logs show, all extrafanart and extrathumbs have been properly cached according to the logs.
However, screenshots of XBMC show a different story:
Extrathumbs are not cached - Screen 1
Extrafanart not used. Only fanart.jpg is shown as the background. Screen 2

6. Plug-In External Drive / Check Artwork
Code:
texturecache.py jd movies "Bug"
texturecache.py s "Bug"
check artwork with drive plugged-in LOG
As you can see, extrathumbs somehow got rescanned and now show twice in the log. However, I did not run any texturecache.py commands to make this happen.
Additionally, now both extrathumbs and extrafanart work properly!?!
Extrathumbs are now cached - Screen 3
Extrafanart in the extrafanart folder is now cycled through - Screen 4 Screen 5

So, to re-iterate, why aren't either the extrathumbs or extrafanart being properly cached by texturecache.py?

Thanks is advance for any advice, tips, and help!
Reply


Messages In This Thread
Extrathumbs/Extrafanart not caching? - by radigast - 2014-05-05, 12:25
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility17