[leboncoin] fix bugs ( 'Hier' date parsing + getting photo.data)
This commit is contained in:
parent
3e1a8b735a
commit
3297651bdc
2 changed files with 4 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue