add image featured media
This commit is contained in:
parent
d2cfb949f8
commit
0e5afe60a7
@ -466,6 +466,7 @@ class WPimport:
|
|||||||
if page.status_code == 200:
|
if page.status_code == 200:
|
||||||
self._logger.info("{0} : Get image for media featured : {1}".format(self._name, r.json()["title"]["raw"]))
|
self._logger.info("{0} : Get image for media featured : {1}".format(self._name, r.json()["title"]["raw"]))
|
||||||
self._addOrUpdateMedia(img_src.replace("_q", ""), page.content)
|
self._addOrUpdateMedia(img_src.replace("_q", ""), page.content)
|
||||||
|
self._addOrUpdateFeaturedMedia(soup)
|
||||||
else:
|
else:
|
||||||
self._logger.error("{0} : Connection error with status code for get image for featured media : {1}".format(self._name, page.status_code))
|
self._logger.error("{0} : Connection error with status code for get image for featured media : {1}".format(self._name, page.status_code))
|
||||||
self._logger.debug("{0} : {1}".format(self._name, r.content))
|
self._logger.debug("{0} : {1}".format(self._name, r.content))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user