mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-12 22:22:30 +02:00
Fix personal desktop crawling without favorites
This commit is contained in:
@ -24,6 +24,7 @@ ambiguous situations.
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Crawling of personal desktop with ILIAS 8
|
- Crawling of personal desktop with ILIAS 8
|
||||||
|
- Crawling of empty personal desktops
|
||||||
|
|
||||||
## 3.5.1 - 2024-04-09
|
## 3.5.1 - 2024-04-09
|
||||||
|
|
||||||
|
@ -1074,6 +1074,14 @@ class IliasPage:
|
|||||||
if soup.find("a", attrs={"href": lambda x: x and "block_type=pditems" in x}):
|
if soup.find("a", attrs={"href": lambda x: x and "block_type=pditems" in x}):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
# Empty personal desktop has zero (0) markers. Match on the text...
|
||||||
|
if alert := soup.select_one(".alert-info"):
|
||||||
|
text = alert.getText().lower()
|
||||||
|
if "you have not yet selected any favourites" in text:
|
||||||
|
return True
|
||||||
|
if "sie haben aktuell noch keine favoriten ausgewählt" in text:
|
||||||
|
return True
|
||||||
|
|
||||||
# Video listing embeds do not have complete ILIAS html. Try to match them by
|
# Video listing embeds do not have complete ILIAS html. Try to match them by
|
||||||
# their video listing table
|
# their video listing table
|
||||||
video_table = soup.find(
|
video_table = soup.find(
|
||||||
|
Reference in New Issue
Block a user