From 9ed5ffe3993da7ca72dadf4d3524e689ee336fb7 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 5 Aug 2023 12:28:33 +0200 Subject: [PATCH] add variable --- lib/WPImport.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/WPImport.py b/lib/WPImport.py index 60d6980..70843f7 100644 --- a/lib/WPImport.py +++ b/lib/WPImport.py @@ -116,6 +116,10 @@ class WPimport: def _addOrUpdateAlbum(self, soup): self._logger.info("{0} : Add/Update Album".format(self._name)) + albumbody = soup.find("div", class_="albumbody") + albumtitle = albumbody.find("h2").get_text() + self._logger.debug("{0} : Title of the album : {1}".format(self._name, albumtitle)) + albumdesc = albumbody.find("div", class_="albumdesc").find("p") def _fromFileTmp(self): try: