[leboncoin] fix bugs ( 'Hier' date parsing + getting photo.data)

This commit is contained in:
Bezleputh 2014-09-26 00:27:33 +02:00
commit 3297651bdc
2 changed files with 4 additions and 3 deletions

View file

@ -51,7 +51,7 @@ class LeboncoinBackend(BaseBackend, CapHousing):
def fill_photo(self, photo, fields):
if 'data' in fields and photo.url and not photo.data:
photo.data = self.browser.readurl(photo.url)
photo.data = self.browser.open(photo.url).content
return photo
def search_city(self, pattern):