fix parsing of geo position

This commit is contained in:
Romain Bignon 2015-09-05 13:05:37 +02:00
commit 9fe4314835

View file

@ -119,10 +119,10 @@ class WebsiteBrowser(LoginBrowser):
text = script.text
if text is None:
continue
m = re.search('"memberLat":\s*([\-\d\.]+),', text, re.IGNORECASE)
m = re.search("'memberLat'\s*:\s*([\-\d\.]+),", text, re.IGNORECASE)
if m:
profile['lat'] = float(m.group(1))
m = re.search('"memberLng":\s*([\-\d\.]+),', text, re.IGNORECASE)
m = re.search("'memberLng'\s*:\s*([\-\d\.]+),", text, re.IGNORECASE)
if m:
profile['lng'] = float(m.group(1))