mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix wrong base URL for multi-stage pages
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user