[RELEASE] Texture Cache Maintenance utility
(2014-01-18, 05:32)Msan Wrote: So.. can texturecache delete the entries for the missing poster files out of the mysql database and then I could export again and scan them back into xbmc? it should then see that there is no poster file or entry and download the missing file..

Yes, if your system is running a recent Gotham nightly (as it was only recently that it became possible to remove artwork via JSON).

Though if you remove the artwork from the media library what are you expecting to export? Exporting only exports the (generally) low quality images you have in your texture cache, XBMC won't download any artwork that is missing while exporting the library. Although if you have remote urls for artwork in your media library, you can use mklocal.py to download that artwork (the originals, not the squashed version from the texture cache) so that it becomes local artwork.

If you still want to remove the missing artwork... try texturecache.py and mklocal.py.

If you run your movies through mklocal.py with the --readonly, --nokeep and --output options then you should get instructions that remove your missing artwork. Something like:
Code:
./texturecache.py jd movies | ./mklocal.py --local <path-to-your-movies> --prefix <your-source-prefix> --artwork fanart poster --readonly --nokeep --output >updates.dat

If the output looks sensible - any artwork that is to be removed will have its value set to null - then apply the changes to your media library:
Code:
cat updates.dat | ./texturecache.py set

You'll need to work out the values for <path-to-your-movies> and <your-source-prefix>.

<path-to-your-movies> should be the OS mount that permits the script to access the files in <your-source-prefix>, eg.
Code:
./texturecache.py jd movies | ./mklocal.py --local /freenas/media --prefix nfs://192.168.0.3/mnt/share/media --artwork fanart poster --readonly --nokeep --output >updates.dat

Essentially, /freenas/media maps to nfs://192.168.0.3/mnt/share/media and vice versa.

If you want to download any remote artwork and make it local, run the mklocal.py commands above but leave out the "--readonly" and "--nokeep" options.

Of course restoring the missing artwork is probably the best option - have you looked at something like Ember Media Manager which may be able to automatically download the missing artwork?

Or having removed the missing artwork from your media library, you could try Artwork Downloader, and either enable the "use local files" option or leave this option disabled then use mklocal.py to populate your NAS with the new artwork (Artwork Downloaded does not support multiple movies in the same folder, in case that is how you have your media structured, whereas mklocal.py does).
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


Messages In This Thread
RE: [RELEASE] Texture Cache Maintenance utility - by Milhouse - 2014-01-18, 06:16
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