2017-10-30, 14:33
(2017-10-30, 12:30)pacoma2610 Wrote: Using LE Milhouse Build #1029,
I receive this error message since recently, so far it has always worked
FATAL: The task you wish to perform requires that a JSON-RPC server with
version 6 or above of the Kodi JSON-RPC API is provided.
The JSON-RPC API version of the connected server is: 0 (0 means unknown)
Check settings in properties file texturecache.cfg
Are you using the built-in version of texturecache.py or a version you downloaded? Because the built-in version in #1029 is currently modified to work around the broken JSON version in recent test builds.
Anyone else will need to use this patch if they are using one of my test builds as the remote client:
Code:
index 8541121..44bf945 100755
--- a/texturecache.py
+++ b/texturecache.py
@@ -7873,6 +7873,9 @@ def checkConfig(option):
if "result" in data and "version" in data["result"]:
jsonGotVersion = data["result"]["version"]
+ if jsonGotVersion["major"] == 0:
+ gLogger.err("WARNING: overriding major version!", newLine=True)
+ jsonGotVersion["major"] = 8
if type(jsonGotVersion) is dict and "major" in jsonGotVersion:
gConfig.SetJSONVersion(jsonGotVersion.get("major",0),
jsonGotVersion.get("minor",0),
or download http://sprunge.us/WcLJ which already includes the change.
I'm not pushing the "fix" to the repo because it's entirely unnecessary under normal circumstances.