mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-07-13 06:32:32 +02:00
Ignore unavailable elements (#119)
This commit is contained in:
@ -329,6 +329,15 @@ instance's greatest bottleneck.
|
||||
# directory escape attacks.
|
||||
element_path = PurePath(parent_path, element.name)
|
||||
|
||||
# This is symptomatic of no access to the element, for example, because
|
||||
# of time availability restrictions.
|
||||
if "cmdClass=ilInfoScreenGUI" in element.url and "cmd=showSummary" in element.url:
|
||||
log.explain(
|
||||
"Skipping element as url points to info screen, "
|
||||
"this should only happen with not-yet-released elements"
|
||||
)
|
||||
return None
|
||||
|
||||
if element.type in _VIDEO_ELEMENTS:
|
||||
if not self._videos:
|
||||
log.status(
|
||||
|
Reference in New Issue
Block a user