Added course literature, concat lecture and video dl script
This commit is contained in:
parent
fa91042d1e
commit
1d96f32e8e
BIN
Lecture/Lecture.pdf
Normal file
BIN
Lecture/Lecture.pdf
Normal file
Binary file not shown.
1
Lecture/videos/.gitignore
vendored
Normal file
1
Lecture/videos/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
Recordings/
|
19
Lecture/videos/download.py
Normal file
19
Lecture/videos/download.py
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
directory = Path(__file__).resolve().parent
|
||||||
|
for file in directory.glob("*.flv"):
|
||||||
|
with file.open() as fp:
|
||||||
|
line = fp.readline().strip()
|
||||||
|
if line != "[InternetShortcut]":
|
||||||
|
raise Exception(f"File {file} is not an internet shortcut!")
|
||||||
|
url_line = fp.readline().strip()
|
||||||
|
prefix = "URL="
|
||||||
|
if not url_line.startswith(prefix):
|
||||||
|
raise Exception(f"URL not found!")
|
||||||
|
url = url_line[len(prefix):]
|
||||||
|
print(file, url)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
BIN
multiagentsystem_literature.pdf
Normal file
BIN
multiagentsystem_literature.pdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user