mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-12 14:12:30 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
eb01aa86cb | |||
3db186a978 | |||
4a5959fd58 | |||
1cbc2b717a |
@ -22,6 +22,12 @@ ambiguous situations.
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 3.5.2 - 2024-04-14
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Crawling of personal desktop with ILIAS 8
|
||||||
|
- Crawling of empty personal desktops
|
||||||
|
|
||||||
## 3.5.1 - 2024-04-09
|
## 3.5.1 - 2024-04-09
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -378,6 +378,10 @@ class IliasPage:
|
|||||||
name = _sanitize_path_name(link.text.strip())
|
name = _sanitize_path_name(link.text.strip())
|
||||||
url = self._abs_url_from_link(link)
|
url = self._abs_url_from_link(link)
|
||||||
|
|
||||||
|
if "cmd=manage" in url and "cmdClass=ilPDSelectedItemsBlockGUI" in url:
|
||||||
|
# Configure button/link does not have anything interesting
|
||||||
|
continue
|
||||||
|
|
||||||
type = self._find_type_from_link(name, link, url)
|
type = self._find_type_from_link(name, link, url)
|
||||||
if not type:
|
if not type:
|
||||||
_unexpected_html_warning()
|
_unexpected_html_warning()
|
||||||
@ -1074,6 +1078,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(
|
||||||
|
@ -228,7 +228,7 @@ instance's greatest bottleneck.
|
|||||||
await self._crawl_url(root_url, expected_id=course_id)
|
await self._crawl_url(root_url, expected_id=course_id)
|
||||||
|
|
||||||
async def _crawl_desktop(self) -> None:
|
async def _crawl_desktop(self) -> None:
|
||||||
appendix = r"ILIAS\PersonalDesktop\PDMainBarProvider|mm_pd_sel_items"
|
appendix = r"ILIAS\Repository\Provider\RepositoryMainBarProvider|mm_pd_sel_items"
|
||||||
appendix = appendix.encode("ASCII").hex()
|
appendix = appendix.encode("ASCII").hex()
|
||||||
await self._crawl_url(self._base_url + "/gs_content.php?item=" + appendix)
|
await self._crawl_url(self._base_url + "/gs_content.php?item=" + appendix)
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
NAME = "PFERD"
|
NAME = "PFERD"
|
||||||
VERSION = "3.5.1"
|
VERSION = "3.5.2"
|
||||||
|
Reference in New Issue
Block a user