-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.tpl.py
155 lines (145 loc) · 3 KB
/
settings.tpl.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#!/usr/bin/env python
# Author: WithdewHua
# 日志设置
LOG_LEVEL = "INFO"
# TMDB API Key
TMDB_API_KEY = "xxxxxxxxxxxxxx"
# rclone 相关设置
# 如果重命名失败, 是否需要上传至 GD
# 主要失败原因有:
# 1. 获取 tmdb 信息失败;
# 2. 对于剧集, 季度信息缺失
RCLONE_ALWAYS_UPLOAD = False
# rclone rc address
RC_ADDR = ""
# qBittorrent 设置
QBIT = {
"host": "127.0.0.1",
"port": 8080,
"user": "admin",
"password": "kkUtDJ%q2nf@he&j5xXCZ!Nd",
}
# TG 通知相关设置
# api key
TG_API_KEY = "xxxx:xxxxxxxxxxxxxxxxxxxx"
# 需要通知的 chat id
TG_CHAT_ID = [
"234886189",
# "-1001681825024",
]
# GD 相关设置
REMOVE_EMPTY_FOLDER = False
HANDLE_LOCAL_MEDIA = False
# 分类设置
CATEGORY_SETTINGS_MAPPING = {
"TVShows": [
(
(None, 2024),
{
"rclone": "GD-TVShows",
"local": "TVShows",
"mount_point": "/Media",
},
),
(
(2025, None),
{
"rclone": "GD-TVShows2",
"local": "TVShows",
"mount_point": "/Media2",
},
),
],
"Anime": [
(
(None, 2024),
{
"rclone": "GD-TVShows",
"local": "TVShows",
"mount_point": "/Media",
},
),
(
(2025, None),
{
"rclone": "GD-TVShows2",
"local": "TVShows",
"mount_point": "/Media2",
},
),
],
"Movies": [
(
(None, None),
{
"rclone": "GD-Movies",
"local": "Movies",
"mount_point": "/Media",
},
),
],
"NC17-Movies": [
(
(None, None),
{
"rclone": "GD-Movies",
"local": "NC17-Movies",
"mount_point": "/Media",
},
),
],
"Concerts": [
(
(None, None),
{
"rclone": "GD-Movies",
"local": "Concerts",
"mount_point": "/Media",
},
),
],
"NSFW": [
(
(None, None),
{
"rclone": "GD-NSFW",
"local": "NSFW",
"mount_point": "/Media",
},
),
],
"Music": [
(
(None, None),
{
"rclone": "GD-Music",
"local": "Music",
"mount_point": "/Media",
},
),
],
}
# 媒体处理设置
ORIGIN_NAME = True
# 媒体后缀
MEDIA_SUFFIX = [
"srt",
"ass",
"ssa",
"sup",
"mkv",
"ts",
"mp4",
"flv",
"rmvb",
"avi",
"mov",
]
# plex 设置
PLEX_BASE_URL = "https://xxxxxxxxxx"
PLEX_API_TOKEN = "xxxx"
PLEX_AUTO_SCAN = True
# emby 设置
EMBY_BASE_URL = "https://xxxxxxxxxx"
EMBY_API_TOKEN = "xxxx"
EMBY_AUTO_SCAN = True