mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-12 14:12:30 +02:00
Fix page size increase for forum threads
This commit is contained in:
@ -286,11 +286,9 @@ class IliasPage:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def _is_forum_page(self) -> bool:
|
def _is_forum_page(self) -> bool:
|
||||||
read_more_btn = self._soup.find(
|
if perma_link := self.get_permalink():
|
||||||
"button",
|
return "target=frm_" in perma_link
|
||||||
attrs={"onclick": lambda x: x is not None and "cmdClass=ilobjforumgui&cmd=markAllRead" in x}
|
return False
|
||||||
)
|
|
||||||
return read_more_btn is not None
|
|
||||||
|
|
||||||
def _is_video_player(self) -> bool:
|
def _is_video_player(self) -> bool:
|
||||||
return "paella_config_file" in str(self._soup)
|
return "paella_config_file" in str(self._soup)
|
||||||
|
Reference in New Issue
Block a user