diff --git a/src/__init__.py b/src/__init__.py index aac4a41..6a24f29 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1,2 +1,2 @@ -__version__ = "2.2" +__version__ = "2.3" diff --git a/src/forumparser.py b/src/forumparser.py index 17ec7f7..7d6e2aa 100644 --- a/src/forumparser.py +++ b/src/forumparser.py @@ -79,7 +79,7 @@ def setPostKey(key, value, replacements=[]): url = topicTitle.get("href", "") setPostKey("threadId", url[url.find("?t=") + 3:url.rfind("&sid=")]) respShow = post.find("div", class_="responsive-show") - userName = respShow.get_text(strip=True)[19:] # "Letzter Beitrag von Testomat « 23 Okt 2025 16:26" + userName = respShow.get_text(strip=True)[19:] # "Letzter Beitrag von Testomat « 23 Okt 2025 16:26" userName = userName[:userName.find("«")] setPostKey("userName", userName) setPostKey("latestLine", respShow, replacements=(["\t", "\n"])) @@ -120,12 +120,12 @@ def convert2int(valueStr, fallbackInt=0): foundpos = titleLine.rfind("Seite") threadTitle = titleLine[:foundpos - 3] if foundpos != -1 else titleLine threadId = xml.find("input", {"name": "t", "type": "hidden"}).get("value") - button = xml.find("a", {"class": "button button-icon-only dropdown-trigger"}) - if button: - pages = button.get_text().strip("Seite ").split(" von ") - currPage, maxPages = (convert2int(pages[0], 1), convert2int(pages[1], 1)) if pages and len(pages) > 1 else (1, 1) - else: - currPage, maxPages = 1, 1 + pagination = xml.find("div", {"class": "pagination"}) #