Posts: 34
Joined: Jan 2013
Reputation:
1
Is there anything special that needs to be done if using a central MYSQL server? I run the script with mostly defaults and when cache moveis I get errors such as..
Environment info:
MYSQL DB (same machine as Kodi and the script)
Windows 10
My texturecache config is this...
xbmc.host = localhost
webserver.port = 8080
webserver.username = xxxx
webserver.password = xxxx
download.threads = 40
allow.recacheall=yes
logfile = c:\temp\texturecache.log
ran .\texturecache.py c movies
then every movies has an error similar to
2018-12-01 08:44:01.634171:MainThread: ERROR ITEM: {4, "movies", "poster", "Zero Dark Thirty", None, None, "C:\Upload\xbmc_videodb_2015-11-22\movies\Zero_Dark_Thirty_2012-poster.jpg", 0, None, 471, False}
I don't know why it has "C:\Upload\xbmc_videodb_2015-11-22" in the path?
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
@Mr.Floppy: test calling texturecache.py directly from the command line, maybe you're missing a PATH entry for the Python executable. I'm pretty sure the script works fine on Windows providing your Windows system is configured correctly.
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
Enable the texturecache logfile - that would at least confirm if texturecache.py is running, and if it is it may give a clue why it is not working. However my expectation is that the texturecache.py script is not being run correctly, which may be due to Windows and/or RunScript.
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: 14
Joined: Oct 2017
Reputation:
0
2018-12-13, 20:17
(This post was last modified: 2018-12-14, 00:51 by Mr.Floppy.)
I enabled logging in the texturecache.cfg, but it doesn't even start logging when using the "RunScript" method! (Running it from the windows 7 command line, however, does create a logfile.)
But maybe I now have got a hint what is going wrong: I put the code from my "test.py" into your "texturecache.py" just to find out why it isn't executed when using the "RunScript" method.
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os, sys, platform, re, datetime, time
import socket, base64, hashlib
import threading, random
import errno, codecs
import subprocess
import tempfile
for z in range(0,3):
sys.stdout.write("\a")
time.sleep(3)
Result: no execution
but when "socket" is removed, it looks like this
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import os, sys, platform, re, datetime, time
import base64, hashlib
import threading, random
import errno, codecs
import subprocess
import tempfile
for z in range(0,3):
sys.stdout.write("\a")
time.sleep(3)
Result: it does work!!!!!!!
So I think the issue is related to the use of "import socket" under "KODI 18 for Windows", thus "texturecache.py" needs some modification to work again with the "RunScript" method.
Could you please have a look at it?
Thank you in advance!
Posts: 14
Joined: Oct 2017
Reputation:
0
I'm very sorry, it was all my fault...
Obviously, I had installed "Python 2.x" in its 32bit version, and because there is only a 32bit version of KODI v17.6, no problems occured.
Then KODI 18 came out, and I chose the first download link (=64bit version), but did forget to remove the 32bit version of "Python 2.x" and replace it with its 64bit version...
After doing so, all is working fine now!
Posts: 200
Joined: Sep 2010
Reputation:
0
mrpg
Senior Member
Posts: 200
I am using kodi 18 nightly,
and i ran texturecache.py C recently.
After this, i am missing most of the artwork for my movies, for example posters for 80% of my movies, just have a blank thumbnail.
I tried deleting the Textures13.db file, but its still the same issue.
Can anyone give me some other suggestions on how i can fix this?
Mant thanks for any help!
Br
Patric
Posts: 200
Joined: Sep 2010
Reputation:
0
mrpg
Senior Member
Posts: 200
2019-01-06, 13:52
(This post was last modified: 2019-01-06, 14:11 by mrpg.)
Thanks for the reply,
ok, i see something i do not understand in the logs, as far as i know, i have never asked kodi to save images for anything on my nas.
But its looking for movie posters on an nfs mounted disk (i.e my nas)
13:05:31.901 T:140613692253952 DEBUG: GetImageHash - unable to stat url /data/nas2/Various/Patric/xbmc_videodb_2017-01-27/movies/Austin_Powers:_The_Spy_Who_Shagged_Me_1970-poster.jpg
The xbmc_videodb... folder does not exists in that path , and i would really not want them cached there, prefer they were local on the kodi pc
How can i correct this?
Br
PG
Posts: 200
Joined: Sep 2010
Reputation:
0
mrpg
Senior Member
Posts: 200
Worked around it by changing source to "none" and back to "movies" and refreshed the source.
Posts: 242
Joined: Nov 2016
Reputation:
4
xodi
Senior Member
Posts: 242
2019-01-12, 14:35
(This post was last modified: 2019-01-12, 15:05 by xodi.)
For version 2.4.8, I used the "c" option to cache all textures, from the output of the command, I saw a lot of images cached and there is no problem reported at the end, but I found the discart and actor image are still being loaded from online by Kodi (it took some time before these image showing). Is this expected?
DEBUG: Caching image 'https://assets.fanart.tv/fanart/movies/269149/moviedisc/zootopia-56bfc33e7cd6f.png' to '6/6e7066a1.png':
DEBUG: cached image 'special://masterprofile/Thumbnails/6/6e7066a1.png' size 720x720
DEBUG: Caching image 'http://image.tmdb.org/t/p/original/mEArEtz9hiSptnllYJvhh0mbp35.jpg' to 'd/de43a668.jpg':
DEBUG: cached image 'special://masterprofile/Thumbnails/d/de43a668.jpg' size 300x450
I run the "P" command to clear the texture and run "c" command again to cache and then run the "p" to see what's non-referenced image in texture cache, just found a lot of discart and actor images in the list, for example:
031496|b/b2ad02e2.png|0720|0720|0001|| |https://assets.fanart.tv/fanart/movies/315635/moviedisc/spider-man-homecoming-590086b14964f.png
Seems the texturecache tool cached these images successfully, but failed to set them in database, so Kodi has no knowledge about them and download it again from online when they are used.