mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Allow crawling videos with sync_url
This commit is contained in:
parent
51a713fa04
commit
c1ccb6c53e
@ -245,6 +245,12 @@ class IliasCrawler:
|
|||||||
"""
|
"""
|
||||||
soup = self._get_page(url, {})
|
soup = self._get_page(url, {})
|
||||||
|
|
||||||
|
if soup.find(id="headerimage"):
|
||||||
|
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}")
|
||||||
|
return self._crawl_video_directory(folder_path, url)
|
||||||
|
|
||||||
result: List[IliasCrawlerEntry] = []
|
result: List[IliasCrawlerEntry] = []
|
||||||
|
|
||||||
# Fetch all links and throw them to the general interpreter
|
# Fetch all links and throw them to the general interpreter
|
||||||
|
Loading…
Reference in New Issue
Block a user