diff --git a/lib/WPMenu.py b/lib/WPMenu.py index b17be64..bcb34a2 100644 --- a/lib/WPMenu.py +++ b/lib/WPMenu.py @@ -86,6 +86,8 @@ class WPMenu: idMenu = {"id":0, "type":"", "link":""} soup = BeautifulSoup(content, self._parser) articletitle = soup.find("h2", class_="articletitle").get_text() + if len(articletitle) > 0: + articletitle = soup.find("h2").get_text() exist = False for index in range(1,10): if exist is False: