[RELEASE] Texture Cache Maintenance utility
After restoring an OpenElec backup I lost most of my fanart and posters. When trying this script I get errors exactly for those movies that lost it's images.

Code:
OpenELEC:~/downloads # ./texturecache.py C movies "2 Guns" @allow.recacheall=yes @download.threads=1
                                                                                  
Caching artwork: 0 items remaining of 2 (qs: 0, qm: 0), 2 errors, 0 threads active (00.57 downloads per second, ETA: 00:00:00)

The following items could not be downloaded:

[fanart    ] [2 Guns                                  ] http://image.tmdb.org/t/p/original/wZsX7160l5feO646shRx3liMutx.jpg
[poster    ] [2 Guns                                  ] http://image.tmdb.org/t/p/original/30lM3Uvzs6HOG5l4hzhwxYTWgd3.jpg

Cache pre-load activity summary for "movies", filtered by "2 Guns":

              |    fanart   |    poster   |    TOTAL    
--------------+-------------+-------------+-------------
Cached        |      -      |      -      |      0      
Deleted       |      -      |      -      |      0      
Duplicate     |      -      |      -      |      0      
Error         |      1      |      1      |      2      
Ignored       |      -      |      -      |      0      
Skipped       |      -      |      -      |      0      
Undefined     |      -      |      -      |      0      
========================================================
TOTAL         |      1      |      1      |      2      
Download Time | 00:00:01.74 | 00:00:01.74 | 00:00:03.48

  Threads Used: 1
   Min/Avg/Max: 0.57 / 0.57 / 0.57

       Loading: 00:00:00.24
       Parsing: 00:00:00.01
     Comparing: 00:00:03.60
   Downloading: 00:00:04.00
TOTAL RUNTIME: 00:00:07.90
OpenELEC:~/downloads #

There have been more post with similar issues, but those displayed a network or relative url instead of a plain accessible internet url.
Manually downloading one of the images with the following on the same system works fine so it's not the internet connection that's causing issues:
Code:
OpenELEC:~/downloads # curl http://image.tmdb.org/t/p/original/wZsX7160l5feO646shRx3liMutx.jpg -o wZsX7160l5feO646shRx3liMutx.jpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1043k  100 1043k    0     0  3402k      0 --:--:-- --:--:-- --:--:-- 3442k
OpenELEC:~/downloads #

Enabling debugging, including component specific for curl, gives me nothing related in the xbmc.log. The following is all that's logged during the time the script is running:
Code:
18:54:20 317.615112 T:2755408976   DEBUG: Thread JobWorker 2755408976 terminating (autodelete)
18:54:35 332.493042 T:2773480528   DEBUG: webserver: request received for /jsonrpc
18:54:35 332.532013 T:2730243152   DEBUG: JSONRPC Server: New connection detected
18:54:35 332.532440 T:2730243152    INFO: JSONRPC Server: New connection added
18:54:35 332.556763 T:2730243152    INFO: JSONRPC Server: Disconnection detected
18:54:36 333.596283 T:2730243152   DEBUG: JSONRPC Server: New connection detected
18:54:36 333.596741 T:2730243152    INFO: JSONRPC Server: New connection added
18:54:36 333.710236 T:2730243152   DEBUG: RunQuery took 8 ms for 1 items query: select * from movieview  WHERE ((movieview.c00 LIKE '%2 Gun$
18:54:36 333.816772 T:2730243152   DEBUG: JSONRPC Server: New connection detected
18:54:36 333.817169 T:2730243152    INFO: JSONRPC Server: New connection added
18:54:39 337.169250 T:2730243152    INFO: JSONRPC Server: Disconnection detected
18:54:39 337.227020 T:2830906448   DEBUG: webserver: request received for /jsonrpc
18:54:43 341.207306 T:2730243152   DEBUG: Previous line repeats 7 times.
18:54:43 341.207581 T:2730243152    INFO: JSONRPC Server: Disconnection detected

Manually refreshing the movie also doesn't restore the images.
What I do get in the log when manually refreshing is:
Code:
19:15:21 1578.453003 T:2830906448  NOTICE: Thread JobWorker start, auto delete: true
19:15:21 1578.464722 T:2830906448   ERROR: COMXImageFile::ReadFile special://masterprofile/Thumbnails/6/6c1ec998.jpg not found
19:15:21 1578.465088 T:2830906448  NOTICE: LoadJpeg: unable to load special://masterprofile/Thumbnails/6/6c1ec998.jpg
19:15:29 1586.925171 T:2679911504  NOTICE: Thread VideoInfoDownloader start, auto delete: false
19:15:44 1602.097046 T:2679911504  NOTICE: Previous line repeats 1 times.
19:15:44 1602.097412 T:2679911504  NOTICE: Thread JobWorker start, auto delete: true
19:15:47 1604.883545 T:2679911504   ERROR: COMXImageFile::ReadFile special://masterprofile/Thumbnails/6/685e3b42.jpg not found
19:15:47 1604.883911 T:2679911504  NOTICE: LoadJpeg: unable to load special://masterprofile/Thumbnails/6/685e3b42.jpg
19:15:47 1604.886963 T:2830906448   ERROR: COMXImageFile::ReadFile special://masterprofile/Thumbnails/6/6c1ec998.jpg not found
19:15:47 1604.887329 T:2830906448  NOTICE: LoadJpeg: unable to load special://masterprofile/Thumbnails/6/6c1ec998.jpg
19:15:47 1605.216797 T:2830906448   ERROR: COMXImageFile::ReadFile special://masterprofile/Thumbnails/6/6c1ec998.jpg not found
19:15:47 1605.217163 T:2830906448  NOTICE: LoadJpeg: unable to load special://masterprofile/Thumbnails/6/6c1ec998.jpg

What could be the cause of the issue and how can I fix it?
Reply


Messages In This Thread
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
RE: [RELEASE] Texture Cache Maintenance utility - by Forage - 2014-10-17, 19:18
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