mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-12 22:22:30 +02:00
Ignore wikis
This commit is contained in:
@ -22,6 +22,9 @@ ambiguous situations.
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## Changed
|
||||||
|
- Explicitly mention that wikis are not supported at the moment and ignore them
|
||||||
|
|
||||||
## 3.8.1 - 2025-04-17
|
## 3.8.1 - 2025-04-17
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
@ -424,6 +424,14 @@ instance's greatest bottleneck.
|
|||||||
"[bright_black](not descending into linked course)"
|
"[bright_black](not descending into linked course)"
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
|
elif element.type == IliasElementType.WIKI:
|
||||||
|
log.status(
|
||||||
|
"[bold bright_black]",
|
||||||
|
"Ignored",
|
||||||
|
fmt_path(element_path),
|
||||||
|
"[bright_black](wikis are not currently supported)"
|
||||||
|
)
|
||||||
|
return None
|
||||||
elif element.type == IliasElementType.LEARNING_MODULE:
|
elif element.type == IliasElementType.LEARNING_MODULE:
|
||||||
return await self._handle_learning_module(element, element_path)
|
return await self._handle_learning_module(element, element_path)
|
||||||
elif element.type == IliasElementType.LINK:
|
elif element.type == IliasElementType.LINK:
|
||||||
|
@ -120,6 +120,7 @@ class IliasElementType(Enum):
|
|||||||
SCORM_LEARNING_MODULE = "scorm_learning_module"
|
SCORM_LEARNING_MODULE = "scorm_learning_module"
|
||||||
SURVEY = "survey"
|
SURVEY = "survey"
|
||||||
TEST = "test" # an online test. Will be ignored currently.
|
TEST = "test" # an online test. Will be ignored currently.
|
||||||
|
WIKI = "wiki"
|
||||||
|
|
||||||
def matcher(self) -> IliasElementMatcher:
|
def matcher(self) -> IliasElementMatcher:
|
||||||
match self:
|
match self:
|
||||||
@ -243,6 +244,11 @@ class IliasElementType(Enum):
|
|||||||
TypeMatcher.query("cmdclass=iltestscreengui"),
|
TypeMatcher.query("cmdclass=iltestscreengui"),
|
||||||
TypeMatcher.img_src("_tst.svg")
|
TypeMatcher.img_src("_tst.svg")
|
||||||
)
|
)
|
||||||
|
case IliasElementType.WIKI:
|
||||||
|
return TypeMatcher.any(
|
||||||
|
TypeMatcher.query("baseClass=ilwikihandlergui"),
|
||||||
|
TypeMatcher.img_src("wiki.svg")
|
||||||
|
)
|
||||||
|
|
||||||
raise CrawlWarning(f"Unknown matcher {self}")
|
raise CrawlWarning(f"Unknown matcher {self}")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user