forked from harlo/InformaFrontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvars.py
More file actions
59 lines (51 loc) · 1.35 KB
/
vars.py
File metadata and controls
59 lines (51 loc) · 1.35 KB
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
from collections import namedtuple
informacam_cookie = namedtuple("informacam_cookie", "ADMIN USER PUBLIC")
InformaCamCookie = informacam_cookie("informacam_admin", "informacam_user", "informacam_public")
INFORMA_SYNC_TYPES = ['google_drive', 'globaleaks']
USER_CREDENTIAL_PACK = {
"username" : "",
"saved_searches" : [],
"session_log" : []
}
from lib.Frontend.vars import *
IMPORTER_SOURCES.append("web_frontend")
informacam_mime_types = {
'j3m' : "informacam/j3m",
'video' : "video/x-matroska",
'3gp' : "video/3gpp",
'log' : "informacam/log"
}
informacam_mime_type_map = {
'informacam/j3m' : "j3m",
'video/x-matroska': "mkv",
'video/3gpp' : "3gp",
'informacam/log' : "j3mlog"
}
informacam_asset_tags = {
'J3M' : "j3m",
'PGP_KEY' : "pgp_key",
'THUMB' : "thumbnail",
'HIGH' : "hi_res",
'MED' : "medium_res",
'LOW' : "low_res"
}
MIME_TYPES.update(informacam_mime_types)
MIME_TYPE_MAP.update(informacam_mime_type_map)
ASSET_TAGS.update(informacam_asset_tags)
MIME_TYPE_TASKS.update({
'image/jpeg' : [
"Image.preprocess_image.preprocessImage",
"Image.make_derivatives.makeDerivatives"
],
'video/x-matroska' : [
"Video.preprocess_video.preprocessVideo",
"Video.make_derivatives.makeDerivatives"
],
'informacam/log' : [
"Log.unpack_j3mlog.unpackJ3MLog"
],
'application/pgp' : [
"Source.init_source.initSource",
"PGP.import_key.importKey"
]
})