Kodi Community Forum

Full Version: Cashe movie posters and albumart upon library scan
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This may be already be possible. I didn't see it though on the forum, so let me post this as a feature request.

I am using mysql and all my movies have full local NFO and art. All my music has albumart embedded. I am using library mode.

How I understand Kodi works is that it only creates cache once I scroll over / select a specific album or movie.

This has two issues: 1) It makes the library slower as it always takes time to extract the albumart when selecting an album for the first time. 2) Albumart is not shown on 3rd part DLNA clients unless I have already hovered over it in Kodi.

Is there a way to force Kodi to extract / load all albumart (and movie posters) while updating the library?

Thanks in advance!
Perhaps the 'Retrieve info for all artists' does that.
Yes, there is a whole thread on the utility to do this. When I find it I'll post it here.
Thanks. This is great. Hope it works for what I am trying to achieve.

I tried to run it with option "c", but got the error message below. Will post it in the thread you linked to:

C:\>texturecache.py c
Traceback (most recent call last):
File "C:\texturecache.py", line 8618, in <module>
main(sys.argv[1:])
File "C:\texturecache.py", line 8311, in main
if not checkConfig(argv[0]): sys.exit(2)
File "C:\texturecache.py", line 7851, in checkConfig
data = wcomms.sendJSON(REQUEST, "libPing", checkResult=False, useWebServer=True)
File "C:\texturecache.py", line 2223, in sendJSON
return self.sendWeb("POST", "/jsonrpc", id, request, {"Content-Type": "application/json"}, timeout=timeout)
File "C:\texturecache.py", line 2210, in sendWeb
return json.loads(data) if data != "" else ""
File "C:\Python27\lib\json\__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "C:\Python27\lib\json\decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded