mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Fix wrong base URL for multi-stage pages
This commit is contained in:
parent
70b33ecfd9
commit
70ec64a48b
3 changed files with 5 additions and 2 deletions
|
|
@ -480,7 +480,7 @@ class IliasPage:
|
|||
return None
|
||||
|
||||
if "opencast" in str(img_tag["alt"]).lower():
|
||||
return IliasElementType.VIDEO_FOLDER
|
||||
return IliasElementType.VIDEO_FOLDER_MAYBE_PAGINATED
|
||||
|
||||
if str(img_tag["src"]).endswith("icon_exc.svg"):
|
||||
return IliasElementType.EXERCISE
|
||||
|
|
|
|||
|
|
@ -253,7 +253,7 @@ instance's greatest bottleneck.
|
|||
soup = await self._get_page(next_stage_url)
|
||||
log.explain_topic(f"Parsing HTML page for {fmt_path(path)}")
|
||||
log.explain(f"URL: {next_stage_url}")
|
||||
page = IliasPage(soup, url, parent)
|
||||
page = IliasPage(soup, next_stage_url, parent)
|
||||
next_stage_url = page.get_next_stage_url()
|
||||
|
||||
elements.extend(page.get_child_elements())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue