-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdefaults.py
40 lines (38 loc) · 1.1 KB
/
defaults.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
app_defaults = {
'_allow_dangerous_post_requests': False,
'_api_route_active_downloads': '/active_downloads',
'_api_route_download': '/download',
'_api_route_queue': '/queue',
'_api_route_extract_info': '/extract_info',
'_api_route_info': '/info',
'_api_route_programmation': '/programmation',
'_enable_users_management': False,
'_listen_ip': '0.0.0.0',
'_listen_port': 80,
'_log_backups': 7,
'_log_level': 20,
'_programmation_interval': 60,
'_unit_test': True,
'_enable_redis': True,
'_redis_ttl': 3600,
'_redis_host': 'ydl_api_ng_redis',
'_redis_port': 6379,
'_skip_info_dict' : False
}
programmation_object_default = {
'id': None,
'url': None,
'user_token': None,
'enabled': True,
'planning': {
'recording_start_date': None,
'recording_duration': None,
'recording_stops_at_end': False,
'recording_restarts_during_duration': True,
'recurrence_cron': None,
'recurrence_start_date': None,
'recurrence_end_date': None,
},
'extra_parameters' : {},
'presets': None
}