-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_example.py
72 lines (62 loc) · 1.52 KB
/
config_example.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
# -*- coding: UTF-8 -*-
"""
全局配置
"""
# 检测开播的间隔,单位秒
LOOP_INTERVAL = 30
# 临时保存目录相对路径
RECORD_DIR = 'record_video/'
# 是否删除已经上传好的录播
DELETE_UPLOADED = True
# streamlink的路径,留空使用系统路径
STREAM_LINK_PATH = ''
#/home/ion/.conda/envs/record/bin/streamlink
# cowtransfer-uploader的路径,留空使用系统路径
COWTRANSFER_PATH = '/home/xxxxxxxxxxx/bin/cowtransfer-uploader'
# rclone的路径,留空使用系统路径
RCLONE_PATH = ''
#/usr/bin/rclone
# Go-CQHTTP的HTTP服务监听地址
HTTP_BOT = "http://localhost:5700/"
# Go-CQHTTP的Access Token(如果有)
BOT_ACCESS_TOKEN = ""
# 直播间配置
watch_lives = [
{
'id': 449047,
'group_id': 123456789,
'uploads': [
{
'platform': 'rclone',
'path': 'od:/public/miriko_record'
},
{
'platform': 'cowtransfer',
'path': '/录播',
'remember-mev2': 'XXXXXXXXXXXXXXXXXXXXXXX',
'cow-auth-token': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
},
{
'platform': 'bilibili',
'account': 'test',
'password': 'password'
}
]
},
{
'id': 23705645,
'group_id': 123456789,
'uploads': [
{
'platform': 'rclone',
'path': 'aws:/public/spica_record'
},
{
'platform': 'cowtransfer',
'path': '/录播2',
'remember-mev2': 'XXXXXXXXXXXXXXXXXXXXXXX',
'cow-auth-token': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
},
]
}
]