Added course literature, concat lecture and video dl script

This commit is contained in:
Michael Chen 2023-03-29 15:10:20 +02:00
parent fa91042d1e
commit 1d96f32e8e
Signed by: cnml
GPG Key ID: 5845BF3F82D5F629
4 changed files with 20 additions and 0 deletions

BIN
Lecture/Lecture.pdf Normal file

Binary file not shown.

1
Lecture/videos/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
Recordings/

View 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()

Binary file not shown.