mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Respect filters in ILIAS crawler
This commit is contained in:
parent
0bae009189
commit
b8efcc2ca5
1 changed files with 3 additions and 0 deletions
|
|
@ -589,6 +589,9 @@ class KitIliasCrawler(HttpCrawler):
|
|||
async def _handle_ilias_element(self, parent_path: PurePath, element: IliasPageElement) -> None:
|
||||
element_path = PurePath(parent_path, element.name)
|
||||
|
||||
if not self.should_crawl(element_path):
|
||||
return
|
||||
|
||||
if element.type == IliasElementType.FILE:
|
||||
await self._download_file(element, element_path)
|
||||
elif element.type == IliasElementType.FORUM:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue