-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
33 lines (28 loc) · 762 Bytes
/
Copy pathconfig.py
File metadata and controls
33 lines (28 loc) · 762 Bytes
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
filetypes = {
"xml": "application/xml",
"yaml": "application/x-yaml",
"aac": "audio/aac",
"mp3": "audio/mpeg",
"ogg": "audio/ogg",
"gif": "image/gif",
"jpeg": "image/jpeg",
"jpg": "image/jpeg",
"png": "image/png",
"svg": "image/svg+xml",
"tiff": "image/tiff",
"ico": "image/vnd.microsoft.icon",
"wbmp": "image/vnd.wap.wbmp",
"webp": "image/webp",
"csv": "text/csv",
"html": "text/html",
"md": "text/markdown",
"txt": "text/plain",
"mpeg": "video/mpeg",
"mp4": "video/mp4",
"webm": "video/webm",
"avi": "video/x-msvideo",
}
default = "application/x-msdownload"
accessLifeTime = 432_000
accessLifeTimeBot = 15_552_000
pattern = r'^https?://(?:[-\w.]|(?:%[\da-fA-F]{2}))+'