Fix page size increase for forum threads

This commit is contained in:
I-Al-Istannen
2025-02-19 12:05:20 +01:00
parent bd9d7efe64
commit 5f88539f7e

View File

@ -286,11 +286,9 @@ class IliasPage:
return None
def _is_forum_page(self) -> bool:
read_more_btn = self._soup.find(
"button",
attrs={"onclick": lambda x: x is not None and "cmdClass=ilobjforumgui&cmd=markAllRead" in x}
)
return read_more_btn is not None
if perma_link := self.get_permalink():
return "target=frm_" in perma_link
return False
def _is_video_player(self) -> bool:
return "paella_config_file" in str(self._soup)