mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Detect new login button
This commit is contained in:
parent
ed24366aba
commit
345f52a1f6
@ -759,7 +759,7 @@ instance's greatest bottleneck.
|
|||||||
# Normal ILIAS pages
|
# Normal ILIAS pages
|
||||||
mainbar: Optional[Tag] = soup.find(class_="il-maincontrols-metabar")
|
mainbar: Optional[Tag] = soup.find(class_="il-maincontrols-metabar")
|
||||||
if mainbar is not None:
|
if mainbar is not None:
|
||||||
login_button = mainbar.find("button", attrs={"data-action": lambda x: x and "login.php" in x})
|
login_button = mainbar.find(attrs={"href": lambda x: x and "login.php" in x})
|
||||||
shib_login = soup.find(id="button_shib_login")
|
shib_login = soup.find(id="button_shib_login")
|
||||||
return not login_button and not shib_login
|
return not login_button and not shib_login
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user