Bloodevil / sony_camera_api

sony camera remote api
http://developer.sony.com/develop/cameras/
MIT License
245 stars 60 forks source link

liveview url #15

Closed mikkab closed 8 years ago

mikkab commented 8 years ago

QX1 send me a url for liveview as http:\/\/192.168.122.1:8080\/liveview\/liveviewstream which is incorrect for urllib2 and function SonyAPI.liveview() return dict instead of urllib2 object. add following code to prevent this situation:

if isinstance(f, dict): url = f['result'][0] f = urllib2.urlopen(url.replace('\', ''))

Thanks

Bloodevil commented 8 years ago

I resolve this issue. I close after testing.

Thanks.

Bloodevil commented 8 years ago

I updated pypi as version 0.1.10

krisrok commented 8 years ago

i tried out timer_photo.py and had to add the following replace statement to make it work: liveview_url = (live['result'][0]).replace("\\/", "/")

before the liveview url looked like http:\/\/localhost\/etc..