-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
72 lines (63 loc) · 1.28 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import re
import pytz
PANOPTO_SERVER_NAME = 'huji.cloud.panopto.eu'
PANOPTO_CLIEND_ID = None
PANOPTO_SECRET = None
COURSE_ID = None
SEMESTER = None
YEAR = None
FOLDER_ID = None
GOOGLE_JSON = 'client_secret.json'
YEARS = {2018: '2018-19',
2019: '2019-20',
2020: '2020-21',
2017: '2017-18'}
REGEX = re.compile(r'[\n\r\t]')
ISRAEL = pytz.timezone('Israel')
UCS = """
<Session>
<Title>Test session with audio, video and a presentation</Title>
<Description/>
<Date>2018-01-15T00:00:00.000-00:00</Date>
<Videos>
<Video>
<Start>PT0S</Start>
<File>primary.mp4</File>
<Cuts/>
<TableOfContents>
</TableOfContents>
<Type>Primary</Type>
<Transcripts/>
</Video>
<Video>
<Start>PT0S</Start>
<File>secondary.mp4</File>
<Cuts/>
<TableOfContents/>
<Type>Secondary</Type>
<Transcripts/>
</Video>
</Videos>
<Presentations>
</Presentations>
<Images/>
<Cuts>
</Cuts>
<Tags/>
<Extensions/>
<Attachments/>
</Session>
"""
SIMPLE = """
<Session>
<Title>{Title}</Title>
<Description>{Description}</Description>
<Date>{Date}</Date>
<Videos>
<Video>
<Start>PT0S</Start>
<File>{Filename}</File>
<Type>Primary</Type>
</Video>
</Videos>
</Session>"""