[WIP] HTPC-Manager Beta, Manage XBMC, Sabnzbd, SickBeard with one app
I have done some debugging now, so here it goes:

With pillow:
Code:
192.168.2.2 - ****** [11/Jun/2013:07:08:14] "GET /xbmc/GetThumb?w=100&h=150&thumb=image%3A%2F%2Fhttp%253a%252f%252fcf2.imgobject.com%252ft%252fp%252foriginal%252fn8ob0xjLIjnvqgWY57rPQYOw7t.jpg%2F HTTP/1.1" 500 1815 "http://192.168.2.5:8014/xbmc/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36"
[11/Jun/2013:07:08:14] HTTP
Request Headers:
  AUTHORIZATION: Digest username="******", realm="HTPC Manager", nonce="1370934388:2ea5243218022edc23b96b2c2ba3ef6a", uri="/xbmc/GetThumb?w=100&h=150&thumb=image%3A%2F%2Fhttp%253a%252f%252fcf2.imgobject.com%252ft%252fp%252foriginal%252fkJQPygYB8aNEevZZHRifyYrAdU9.jpg%2F", algorithm=MD5, response="2843249b5319ee4512d52d62fd7a5610", qop=auth, nc=00000082, cnonce="ec0537c4a7183fbc"
  REFERER: http://192.168.2.5:8014/xbmc/
  HOST: 192.168.2.5:8014
  CONNECTION: keep-alive
  Remote-Addr: 192.168.2.2
  ACCEPT: */*
  USER-AGENT: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
  COOKIE: active_tab=%23movies; plushQueuePerPage=10; plushHistPerPage=20; sdmenu_my_menu=0000000001; wanted_view2=details; advanced_toggle_checked=0; manage_view2=details; plushContainerWidth=100%25; plushNoTopMenu=0; snatched_view2=list; soon_view2=thumbs; late_view2=list; SpryMedia_DataTables_artist_table_home=%7B%22iCreate%22%3A1370932865769%2C%22iStart%22%3A0%2C%22iEnd%22%3A0%2C%22iLength%22%3A50%2C%22aaSorting%22%3A%5B%5B0%2C%22asc%22%2C0%5D%5D%2C%22oSearch%22%3A%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%22aoSearchCols%22%3A%5B%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%5D%2C%22abVisCols%22%3A%5Btrue%2Ctrue%2Ctrue%2Ctrue%2Ctrue%5D%7D
  ACCEPT-LANGUAGE: nb,en-US;q=0.8,en;q=0.6,no;q=0.4,nn;q=0.2
  DNT: 1
  ACCEPT-ENCODING: gzip,deflate,sdch
[11/Jun/2013:07:08:14] HTTP Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cpdispatch.py", line 34, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/.htpc-manager/modules/xbmc.py", line 181, in GetThumb
    return get_image(url, h, w, o, self.auth())
  File "/home/.htpc-manager/htpc/proxy.py", line 30, in get_image
    download_image(url, image, auth)
  File "/home/.htpc-manager/htpc/proxy.py", line 52, in download_image
    im = Image.open(data)
  File "/usr/local/lib/python2.6/dist-packages/PIL/Image.py", line 2020, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file

Debug with the PIL package that comes with the installation:

Code:
=%7B%22iCreate%22%3A1370932865769%2C%22iStart%22%3A0%2C%22iEnd%22%3A0%2C%22iLength%22%3A50%2C%22aaSorting%22%3A%5B%5B0%2C%22asc%22%2C0%5D%5D%2C%22oSearch%22%3A%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%22aoSearchCols%22%3A%5B%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%2C%7B%22bCaseInsensitive%22%3Atrue%2C%22sSearch%22%3A%22%22%2C%22bRegex%22%3Afalse%2C%22bSmart%22%3Atrue%7D%5D%2C%22abVisCols%22%3A%5Btrue%2Ctrue%2Ctrue%2Ctrue%2Ctrue%5D%7D
  ACCEPT-LANGUAGE: nb,en-US;q=0.8,en;q=0.6,no;q=0.4,nn;q=0.2
  DNT: 1
  ACCEPT-ENCODING: gzip,deflate,sdch
[11/Jun/2013:07:18:58] HTTP Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cpdispatch.py", line 34, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/.htpc-manager/modules/xbmc.py", line 181, in GetThumb
    return get_image(url, h, w, o, self.auth())
  File "/home/.htpc-manager/htpc/proxy.py", line 30, in get_image
    download_image(url, image, auth)
  File "/home/.htpc-manager/htpc/proxy.py", line 53, in download_image
    im.save(dest + '.png', 'PNG')
  File "/home/.htpc-manager/libs/PIL/Image.py", line 1439, in save
    save_handler(self, fp, filename)
  File "/home/.htpc-manager/libs/PIL/PngImagePlugin.py", line 572, in _save
    ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0, rawmode)])
  File "/home/.htpc-manager/libs/PIL/ImageFile.py", line 481, in _save
    e = Image._getencoder(im.mode, e, a, im.encoderconfig)
  File "/home/.htpc-manager/libs/PIL/Image.py", line 399, in _getencoder
    return apply(encoder, (mode,) + args + extra)
TypeError: an integer is required

[11/Jun/2013:07:18:58] HTTP Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cprequest.py", line 656, in respond
    response.body = self.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/_cpdispatch.py", line 34, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/.htpc-manager/modules/xbmc.py", line 181, in GetThumb
    return get_image(url, h, w, o, self.auth())
  File "/home/.htpc-manager/htpc/proxy.py", line 30, in get_image
    download_image(url, image, auth)
  File "/home/.htpc-manager/htpc/proxy.py", line 53, in download_image
    im.save(dest + '.png', 'PNG')
  File "/home/.htpc-manager/libs/PIL/Image.py", line 1439, in save
    save_handler(self, fp, filename)
  File "/home/.htpc-manager/libs/PIL/PngImagePlugin.py", line 572, in _save
    ImageFile._save(im, _idat(fp, chunk), [("zip", (0,0)+im.size, 0, rawmode)])
  File "/home/.htpc-manager/libs/PIL/ImageFile.py", line 481, in _save
    e = Image._getencoder(im.mode, e, a, im.encoderconfig)
  File "/home/.htpc-manager/libs/PIL/Image.py", line 399, in _getencoder
    return apply(encoder, (mode,) + args + extra)
TypeError: an integer is required

Hope this will tell you anything Smile
Reply


Messages In This Thread
RE: [WIP] HTPC-Manager - by _Mikie_ - 2012-03-23, 16:03
RE: [WIP] HTPC-Manager - by dakpunne - 2012-03-23, 16:20
RE: [WIP] HTPC-Manager - by Capt.Insano - 2012-03-23, 20:10
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-23, 20:42
RE: [WIP] HTPC-Manager - by ICDeadPpl - 2012-03-23, 21:40
RE: [WIP] HTPC-Manager - by Chromdome93 - 2012-03-24, 00:15
RE: [WIP] HTPC-Manager - by UnderCoverUZI - 2012-03-24, 00:56
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-24, 14:14
RE: [WIP] HTPC-Manager - by ErlendSB - 2012-03-24, 15:25
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-24, 15:29
RE: [WIP] HTPC-Manager - by ErlendSB - 2012-03-24, 15:40
RE: [WIP] HTPC-Manager - by ICDeadPpl - 2012-03-24, 15:51
RE: [WIP] HTPC-Manager - by ErlendSB - 2012-03-24, 16:04
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-24, 17:29
RE: [WIP] HTPC-Manager - by TeKo - 2012-03-24, 17:42
RE: [WIP] HTPC-Manager - by ErlendSB - 2012-03-24, 18:27
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-24, 19:10
RE: [WIP] HTPC-Manager - by Phantisy - 2012-03-24, 18:35
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-24, 18:40
Re: [WIP] HTPC-Manager - by rflores2323 - 2012-03-24, 18:50
RE: [WIP] HTPC-Manager - by ICDeadPpl - 2012-03-24, 21:01
RE: [WIP] HTPC-Manager - by dakpunne - 2012-03-24, 21:20
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-24, 21:18
RE: [WIP] HTPC-Manager - by TeKo - 2012-03-24, 21:24
RE: [WIP] HTPC-Manager - by paavoris - 2012-03-24, 22:00
RE: [WIP] HTPC-Manager - by sb206 - 2012-03-24, 22:03
RE: [WIP] HTPC-Manager - by TeKo - 2012-03-24, 22:10
RE: [WIP] HTPC-Manager - by _Mikie_ - 2012-03-24, 22:48
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-24, 23:31
RE: [WIP] HTPC-Manager - by Livin - 2012-03-24, 23:54
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-25, 00:18
RE: [WIP] HTPC-Manager - by Livin - 2012-03-25, 00:44
RE: [WIP] HTPC-Manager - by karandras24 - 2012-03-25, 00:45
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-25, 01:19
RE: [WIP] HTPC-Manager - by Livin - 2012-03-25, 01:50
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-25, 02:05
RE: [WIP] HTPC-Manager - by ErlendSB - 2012-03-25, 14:14
RE: [WIP] HTPC-Manager - by TeKo - 2012-03-25, 14:16
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-25, 14:34
RE: [WIP] HTPC-Manager - by shlag - 2012-03-25, 16:45
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-25, 19:49
RE: [WIP] HTPC-Manager - by ErlendSB - 2012-03-25, 20:22
RE: [WIP] HTPC-Manager - by TeKo - 2012-03-25, 21:24
RE: [WIP] HTPC-Manager - by SyphOn - 2012-03-26, 07:00
RE: [WIP] HTPC-Manager - by ErlendSB - 2012-03-25, 21:26
RE: [WIP] HTPC-Manager - by shlag - 2012-03-25, 21:41
RE: [WIP] HTPC-Manager Beta, Manage XBMC, Sabnzbd, SickBeard with one app - by tmiland - 2013-06-11, 09:13
HTPC Manager Install - by menage - 2013-07-24, 15:27
stats for remote pc - by dannyb78 - 2014-07-11, 13:22
Logout Mark Read Team Forum Stats Members Help
[WIP] HTPC-Manager Beta, Manage XBMC, Sabnzbd, SickBeard with one app7