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
|
# Copyright (C) 2021 jahoti <jahoti@tilde.team>
# Licensing information is collated in the `copyright` file
"""
Miscellaneous data that were found useful
"""
mime_types = {
"7z": "application/x-7z-compressed", "oga": "audio/ogg",
"abw": "application/x-abiword", "ogv": "video/ogg",
"arc": "application/x-freearc", "ogx": "application/ogg",
"bin": "application/octet-stream", "opus": "audio/opus",
"bz": "application/x-bzip", "otf": "font/otf",
"bz2": "application/x-bzip2", "pdf": "application/pdf",
"css": "text/css", "png": "image/png",
"csv": "text/csv", "sh": "application/x-sh",
"gif": "image/gif", "svg": "image/svg+xml",
"gz": "application/gzip", "tar": "application/x-tar",
"htm": "text/html", "ts": "video/mp2t",
"html": "text/html", "ttf": "font/ttf",
"ico": "image/vnd.microsoft.icon", "txt": "text/plain",
"js": "text/javascript", "wav": "audio/wav",
"jpeg": "image/jpeg", "weba": "audio/webm",
"jpg": "image/jpeg", "webm": "video/webm",
"json": "application/json", "woff": "font/woff",
"mjs": "text/javascript", "woff2": "font/woff2",
"mp3": "audio/mpeg", "xhtml": "application/xhtml+xml",
"mp4": "video/mp4", "zip": "application/zip",
"mpeg": "video/mpeg",
"odp": "application/vnd.oasis.opendocument.presentation",
"ods": "application/vnd.oasis.opendocument.spreadsheet",
"odt": "application/vnd.oasis.opendocument.text",
"xml": "application/xml" # text/xml if readable from casual users
}
|