2014-01-23, 23:42
Curl is a utility, like wget, to download files from web servers. If you want to use this script, copy & paste those installation commands into your ssh window (ie. PuTTY if you're on Windows, connecting to your OpenELEC client).
./texturecache.py C movies moviename
... (snipped the ok-looking part)
2014-01-25 01:45:29.362798:MainThread: libDirectory.FINISHED, elapsed time: 0.029251 seconds
2014-01-25 01:45:29.386471:MainThread: libTextures.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"properties": ["cachedurl", "url"]}, "method": "Textures.GetTextures", "id": "libTextures"}]
2014-01-25 01:46:11.110427:MainThread: libTextures.BUFFER RECEIVED (len 21856)
2014-01-25 01:46:11.112242:MainThread: libTextures.BUFFER RECEIVED (len 21856)
2014-01-25 01:46:11.116008:MainThread: libTextures.BUFFER RECEIVED (len 32768)
... (last line is repeated 100-150 times)
2014-01-25 01:56:13.374352:MainThread: libTextures.Incomplete JSON data - continue reading socket
2014-01-25 01:56:13.383738:MainThread: Ignored Value Error: Expecting object: line 1 column 6957759 (char 6957759)
2014-01-25 01:56:13.385397:MainThread: libTextures.BUFFER RECEIVED (len 32768)
... (last line is repeated again ca. 50 times)
./texturecache.py c
Traceback (most recent call last):
File "./texturecache.py", line 6350, in <module>
main(sys.argv[1:])
File "./texturecache.py", line 6206, in main
extraFields=_extraFields, query=_query)
File "./texturecache.py", line 3373, in jsonQuery
cacheImages(mediatype, jcomms, database, data, title_name, id_name, force, nodownload)
File "./texturecache.py", line 3428, in cacheImages
for r in database.getRows(allfields=False):
File "./texturecache.py", line 1270, in getRows
data = self.mydb.getTextures(filter, order, allfields)
File "./texturecache.py", line 2622, in getTextures
return self.sendJSON(REQUEST, "libTextures", checkResult=False)
File "./texturecache.py", line 1567, in sendJSON
udata = MyUtility.toUnicode(data)
File "./texturecache.py", line 3070, in toUnicode
data = unicode(data, encoding="utf-8", errors="ignore")
./texturecache.py x
2014-01-25 12:52:47.154932:MainThread: libMovies.JSON SOCKET REQUEST: [{"jsonrpc": "2.0", "params": {"sort": {"order": "ascending", "method": "title"}, "properties": ["title", "art", "cast", "file"]}, "method": "VideoLibrary.GetMovies", "id": "libMovies"}]
OpenELEC:~ # ./bcmstat.sh cxd10
Config: v0.0.9, args "cxd10", priority lowest (+19)
Governor: ondemand
Memory: 512MB (split 384MB ARM, 128MB GPU)
HW Block: | ARM | Core | H264 | SDRAM |
Min Freq: | 1000Mhz | 500Mhz | 0Mhz | 500Mhz |
Max Freq: | 1000Mhz | 500Mhz | 250Mhz | 500Mhz |
Voltages: | +4, 1.30V | 0, 1.20V |
Other: temp_limit=85, force_turbo=1
Firmware: Jan 10 2014 16:54:51, version efa116b5c8859c352322cb27e13baccbea583ef7 (clean) (release)
Codecs: H264 VP8 VORBIS MJPG
Booted: Sat Jan 25 13:11:41 2014
Time ARM Core H264 Core Temp (Max) IRQ/s RX B/s TX B/s %user %nice %system %idle %iowait %irq %s/irq %total Memory Free/Used
======== ======= ======= ======= =============== ====== ========== ========== ====== ====== ====== ====== ====== ====== ====== ====== ================
13:14:50 1000Mhz 500Mhz 0Mhz 55.00C (55.00C) 343 1,870 8,513 24.65 36.97 24.65 0.00 0.00 0.00 12.32 100.00 308,728 kB/19.1%
13:15:00 1000Mhz 500Mhz 0Mhz 54.00C (55.00C) 271 706 398 12.94 0.69 1.68 81.88 0.00 0.00 0.00 18.12 308,728 kB/19.1%
13:15:13 1000Mhz 500Mhz 0Mhz 55.00C (55.00C) 414 615 2,116 89.28 1.08 5.03 3.48 0.39 0.00 0.39 96.52 285,740 kB/25.2%
13:15:27 1000Mhz 500Mhz 0Mhz 55.00C (55.00C) 449 54 54 94.87 0.74 3.68 0.00 0.37 0.00 0.37 100.00 259,236 kB/32.1%
13:15:42 1000Mhz 499Mhz 0Mhz 56.00C (56.00C) 305 13 32 94.57 0.67 4.38 0.00 0.13 0.00 0.13 100.00 209,920 kB/45.0%
13:15:58 1000Mhz 500Mhz 0Mhz 56.00C (56.00C) 287 325 1,010 95.59 0.64 3.57 0.00 0.06 0.00 0.19 100.00 188,136 kB/50.7%
13:16:12 1000Mhz 500Mhz 0Mhz 56.00C (56.00C) 278 59 33 97.27 0.69 1.93 0.00 0.07 0.00 0.07 100.00 187,904 kB/50.8%
13:16:27 999Mhz 500Mhz 0Mhz 56.00C (56.00C) 272 34 33 97.45 0.62 2.28 0.00 0.07 0.00 0.07 100.00 188,192 kB/50.7%
13:16:41 1000Mhz 499Mhz 0Mhz 56.00C (56.00C) 277 64 648 95.88 0.55 2.83 0.00 0.14 0.00 0.07 100.00 187,156 kB/51.0%
13:16:56 1000Mhz 500Mhz 0Mhz 56.00C (56.00C) 260 31 33 97.50 0.62 1.86 0.00 0.00 0.00 0.00 100.00 187,172 kB/51.0%
13:17:10 1000Mhz 500Mhz 0Mhz 56.00C (56.00C) 258 7 33 97.15 0.69 2.22 0.00 0.00 0.00 0.00 100.00 187,176 kB/51.0%
13:17:25 999Mhz 500Mhz 0Mhz 56.00C (56.00C) 262 82 276 96.92 0.54 3.18 0.00 0.00 0.00 0.00 100.00 177,240 kB/53.6%
13:17:40 1000Mhz 500Mhz 0Mhz 56.00C (56.00C) 644 6 31 90.36 0.58 5.78 0.00 1.75 0.00 0.58 100.00 170,212 kB/55.4%
13:17:54 1000Mhz 500Mhz 0Mhz 57.00C (57.00C) 328 7 35 94.28 0.71 4.73 0.00 0.14 0.00 0.21 100.00 161,332 kB/57.7%
13:18:09 1000Mhz 500Mhz 0Mhz 56.00C (57.00C) 324 30 32 96.80 0.54 4.75 0.00 0.07 0.00 0.14 100.00 145,108 kB/62.0%
./texturecache.py stats
OpenELEC:~ # ./texturecache.py stats
Albums : 0
Artists : 0
Songs : 0
Movies : 1279
TVShows : 144
Episodes : 3924
MusicVideos: 0
Addons : 60