mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-13 07:55:05 +02:00
Add option to skip videos in sync_url
This commit is contained in:
parent
a519cbe05d
commit
73c3eb0984
2 changed files with 18 additions and 4 deletions
|
|
@ -249,6 +249,9 @@ class IliasCrawler:
|
|||
element: bs4.Tag = soup.find(id="headerimage")
|
||||
if "opencast" in element.attrs["src"].lower():
|
||||
PRETTY.warning(f"Switched to crawling a video at {folder_path}")
|
||||
if not self.dir_filter(folder_path, IliasElementType.VIDEO_FOLDER):
|
||||
PRETTY.not_searching(folder_path, "user filter")
|
||||
return []
|
||||
return self._crawl_video_directory(folder_path, url)
|
||||
|
||||
result: List[IliasCrawlerEntry] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue