[explorimmo] json format changed

This commit is contained in:
Bezleputh 2015-03-27 11:03:03 +01:00 committed by Romain Bignon
commit fa01fff348

View file

@ -119,11 +119,11 @@ class HousingPage2(JsonPage):
def obj_photos(self): def obj_photos(self):
photos = [] photos = []
for img in Dict('characteristics/images')(self): for img in Dict('characteristics/images')(self):
m = re.search('http://thbr\.figarocms\.net.*(http://.*)', img) m = re.search('http://thbr\.figarocms\.net.*(http://.*)', img.get('xl'))
if m: if m:
photos.append(HousingPhoto(m.group(1))) photos.append(HousingPhoto(m.group(1)))
else: else:
photos.append(HousingPhoto(img)) photos.append(HousingPhoto(img.get('xl')))
return photos return photos
def obj_details(self): def obj_details(self):