diff --git a/lib/WPImport.py b/lib/WPImport.py
index 97397e1..3163886 100644
--- a/lib/WPImport.py
+++ b/lib/WPImport.py
@@ -152,14 +152,16 @@ class WPimport:
except Exception as err:
self._logger.error("{0} : Exception error for get image : {1}".format(self._name, err))
exit(1)
+ self._logger.debug("{0} content img : {1}".format(self._name, list_img))
content_html = ""
if len(list_img) > 0:
content_html = "
{0}
\n\n".format(albumdesc)
- content_html = content_html + "
\n\n".format(list_img[0]["id"],list_img[1]["new_src"])
+
+ content_html = content_html + "
\n\n".replace("id-image", str(list_img[0]["id"])).replace("src-image", list_img[0]["new_src"])
for i in range(1, len(list_img)):
- content_html = content_html + "
\n\n".format(list_img[i]["id"],list_img[i]["new_src"])
+ content_html = content_html + "
\n\n".replace("id-image", str(list_img[0]["id"])).replace("src-image", list_img[0]["new_src"])
content_html = content_html + ""
self._logger.info("{0} : content html : {1}".format(self._name, content_html))