[RELEASE] Texture Cache Maintenance utility
A brief note on the mklocal.py tool, which is basically a quick method to populate your media source with original quality artwork (unlike Export Library, which uses potentially image quality compromised artwork from the texture cache).

Example usage:
Code:
./texturecache.py jd movies | ./mklocal.py --local /freenas/media --prefix nfs://192.168.0.3/mnt/share/media --artwork fanart poster clearlogo clearart --output fixup.dat

where /freenas/media is the OS mount point for your media, such that XBMC media source nfs://192.168.0.3/mnt/share/media is mapped to /freenas/media and vice versa.

The above example would process each of your movies for the specified artwork types - fanart, poster, clearlogo and clearart - and, if the artwork file doesn't already exist, and the library url is remote (ie. http://), the artwork item will be downloaded from the source web site and written to the --local folder alongside the corresponding movie file.

Artwork will be named by appending the artwork type to the movie file name, eg. "/freenas/media/Video/MoviesHD/Classics/12 Angry Men (1957)[BDRip]-poster.jpg" will be mapped to "nfs://192.168.0.3/mnt/share/media/Video/MoviesHD/Classics/12 Angry Men (1957)[BDRip]-poster.jpg".

Once you have written the artwork to your media folders, update your media library to use the new local urls with the following call:
Code:
cat fixup.dat | ./texturecache.py set

Also works for tvshows. Add "--season" to also download season artwork, although note there are no JSON methods to modify season artwork so these cannot be set automatically (fixed in recent Gotham nightly, requires JSON API v6.12.0+). Add "--episode" to also download episode thumbs, which can be set automatically.

You can of course test this by not writing to your media folder:
Code:
./texturecache.py jd movies | ./mklocal.py --local /freenas/media/TestFolder --prefix nfs://192.168.0.3/mnt/share/media --artwork fanart poster clearlogo clearart --output fixup.dat
as this will download the remote artwork to TestFolder, and should replicate your existing movie directory structure. Once you are comfortable all is working OK, specify the correct --local folder for your media library. Of course no changes will be applied to your media library until you run the changes through "./texturecache.py set".
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
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average


Messages In This Thread
RE: [RELEASE] Texture Cache Maintenance utility - by Milhouse - 2013-10-21, 13:06
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 utility4.7617