mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Respect filters in ILIAS crawler
This commit is contained in:
parent
0bae009189
commit
b8efcc2ca5
@ -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…
Reference in New Issue
Block a user