[RELEASE] Texture Cache Maintenance utility
I'm having a weird problem.

I first tried to pipe imdb json results to texturecache.py set and I get:
Code:
λ python texturecache.py imdb movies | python texturecache.py set
Traceback (most recent call last):.
  File "texturecache.py", line 8585, in <module>
    main(sys.argv[1:])
  File "texturecache.py", line 8393, in main
    extraFields=_extraFields, query=_query, drop_items=_drop_items)
  File "texturecache.py", line 4645, in jsonQuery
    updateIMDb(mediatype, jcomms, data)
  File "texturecache.py", line 5894, in updateIMDb
    movies250 = MyUtility.Top250MovieList()
  File "texturecache.py", line 4060, in Top250MovieList
    html = urllib2.urlopen(URL)
  File "C:\Python27\lib\urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "C:\Python27\lib\urllib2.py", line 435, in open
    response = meth(req, response)
  File "C:\Python27\lib\urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\lib\urllib2.py", line 467, in error
    result = self._call_chain(*args)
  File "C:\Python27\lib\urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 654, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "C:\Python27\lib\urllib2.py", line 429, in open
    response = self._open(req, data)
  File "C:\Python27\lib\urllib2.py", line 447, in _open
    '_open', req)
  File "C:\Python27\lib\urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "C:\Python27\lib\urllib2.py", line 1241, in https_open
    context=self._context)
  File "C:\Python27\lib\urllib2.py", line 1198, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
Traceback (most recent call last):
  File "texturecache.py", line 8585, in <module>
    main(sys.argv[1:])
  File "texturecache.py", line 8494, in main
    setDetails_batch(dryRun=dryRun)
  File "texturecache.py", line 6201, in setDetails_batch
    jdata = json.loads("".join(data))
  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

But then tried to write to file and then read from it:
Code:
λ python texturecache.py imdb movies > imdb.dat
Code:
λ type imdb.dat | python texturecache.py set

And set worked as expected. Something wrong with pipe | ?!
Image Image
Reply
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average


Messages In This Thread
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
RE: [RELEASE] Texture Cache Maintenance utility - by redglory - 2017-02-25, 02:08
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 utility4.7617