mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Add option to skip videos in sync_url
This commit is contained in:
@ -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] = []
|
||||
|
Reference in New Issue
Block a user