2012-01-05, 12:15
Hello, I'm developing an XBMC python addon which talks to a domotic (home automation) system:
http://dev.vemarsas.it/projects/xbmc-vera/wiki
Now I'm working on security cameras and I'm having a problem in displaying images whose URL contains '&', '?' or '=' .
So, look at this log:
In the second line, you see that an HTTP GET (or at least HEAD) request has been properly performed (otherwise we couldn't know that MIME type is image/jpeg)
But in the third line there's an "unable to stat file" error :mad:
Everything works fine, instead, for URLs like http://www.example.com/myimage.jpg , and the image is properly displayed.
The "offending" code is here:
https://github.com/gderosa/xbmc-vera/blo...era.py#L29
So I'm just calling this function:
http://xbmc.sourceforge.net/python-docs/...e-setImage
I'm on Eden (latest git).
Strangely, there are no spaces or other characters which typically need to be url-escaped...
Thanks in advance!
Guido
http://dev.vemarsas.it/projects/xbmc-vera/wiki
Now I'm working on security cameras and I'm having a problem in displaying images whose URL contains '&', '?' or '=' .
So, look at this log:
Code:
10:04:19 T:139897994680064 INFO: easy_aquire - Created session to http://192.168.0.27
10:04:20 T:139897994680064 DEBUG: CFileCurl::GetMimeType - http://192.168.0.27:3480/data_request?id=cam_image&Device_Num=64 -> image/jpeg
10:04:23 T:139897994680064 DEBUG: GetImageHash - unable to stat url http://192.168.0.27:3480/data_request?id=cam_image&Device_Num=64
In the second line, you see that an HTTP GET (or at least HEAD) request has been properly performed (otherwise we couldn't know that MIME type is image/jpeg)
But in the third line there's an "unable to stat file" error :mad:
Everything works fine, instead, for URLs like http://www.example.com/myimage.jpg , and the image is properly displayed.
The "offending" code is here:
https://github.com/gderosa/xbmc-vera/blo...era.py#L29
So I'm just calling this function:
http://xbmc.sourceforge.net/python-docs/...e-setImage
I'm on Eden (latest git).
Strangely, there are no spaces or other characters which typically need to be url-escaped...
Thanks in advance!
Guido