-
Notifications
You must be signed in to change notification settings - Fork 0
/
cfg.py
347 lines (343 loc) · 7.97 KB
/
cfg.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
import dataclasses
@dataclasses.dataclass(kw_only=True, slots=True, frozen=True)
class Cfg:
url: str
url_mobile: str | None = None
anchor: str
prefix: str
suffix: str
id: int
hash: int
merge: bool = False
notify_types = {
1: Cfg(
url="https://bgm.tv/group/topic",
url_mobile="MOBILE_URL/topic/group/",
anchor="#post_",
prefix="在你的小组话题",
suffix="中发表了新回复",
id=1,
hash=1,
merge=True,
),
2: Cfg(
url="https://bgm.tv/group/topic",
url_mobile="MOBILE_URL/topic/group/",
anchor="#post_",
prefix="在小组话题",
suffix="中回复了你",
id=2,
hash=1,
merge=True,
),
3: Cfg(
url="https://bgm.tv/subject/topic",
url_mobile="/topic/subject",
anchor="#post_",
prefix="在你的条目讨论",
suffix="中发表了新回复",
id=3,
hash=3,
merge=True,
),
4: Cfg(
url="https://bgm.tv/subject/topic/",
url_mobile="MOBILE_URL/topic/subject/",
anchor="#post_",
prefix="在条目讨论",
suffix="中回复了你",
id=4,
hash=3,
merge=True,
),
5: Cfg(
url="https://bgm.tv/character/",
url_mobile="MOBILE_URL/topic/crt/",
anchor="#post_",
prefix="在角色讨论",
suffix="中发表了新回复",
id=5,
hash=5,
merge=True,
),
6: Cfg(
url="https://bgm.tv/character/",
url_mobile="MOBILE_URL/topic/crt/",
anchor="#post_",
prefix="在角色",
suffix="中回复了你",
id=6,
hash=5,
merge=True,
),
7: Cfg(
url="/blog/",
url_mobile=None,
anchor="#post_",
prefix="在你的日志",
suffix="中发表了新回复",
id=7,
hash=7,
merge=True,
),
8: Cfg(
url="https://bgm.tv/blog/",
url_mobile=None,
anchor="#post_",
prefix="在日志",
suffix="中回复了你",
id=8,
hash=7,
merge=True,
),
9: Cfg(
url="https://bgm.tv/subject/ep/",
url_mobile="MOBILE_URL/topic/ep/",
anchor="#post_",
prefix="在章节讨论",
suffix="中发表了新回复",
id=9,
hash=9,
merge=True,
),
10: Cfg(
url="https://bgm.tv/subject/ep/",
url_mobile="MOBILE_URL/topic/ep/",
anchor="#post_",
prefix="在章节讨论",
suffix="中回复了你",
id=10,
hash=9,
merge=True,
),
11: Cfg(
url="https://bgm.tv/index/",
url_mobile=None,
anchor="#post_",
prefix="在目录",
suffix="中给你留言了",
id=11,
hash=11,
merge=True,
),
12: Cfg(
url="https://bgm.tv/index/",
url_mobile=None,
anchor="#post_",
prefix="在目录",
suffix="中回复了你",
id=12,
hash=11,
merge=True,
),
13: Cfg(
url="https://bgm.tv/person/",
url_mobile="MOBILE_URL/topic/prsn/",
anchor="#post_",
prefix="在人物",
suffix="中回复了你",
id=13,
hash=13,
merge=True,
),
14: Cfg(
url="https://bgm.tv/user/",
url_mobile=None,
anchor="#",
prefix="请求与你成为好友",
suffix="",
id=14,
hash=14,
merge=False,
),
15: Cfg(
url="https://bgm.tv/user/",
url_mobile=None,
anchor="#",
prefix="通过了你的好友请求",
suffix="",
id=15,
hash=14,
merge=False,
),
17: Cfg(
url="DOUJIN_URL/club/topic/",
url_mobile=None,
anchor="#post_",
prefix="在你的社团讨论",
suffix="中发表了新回复",
id=17,
hash=17,
merge=True,
),
18: Cfg(
url="DOUJIN_URL/club/topic/",
url_mobile=None,
anchor="#post_",
prefix="在社团讨论",
suffix="中回复了你",
id=18,
hash=17,
merge=True,
),
19: Cfg(
url="DOUJIN_URL/subject/",
url_mobile=None,
anchor="#post_",
prefix="在同人作品",
suffix="中回复了你",
id=19,
hash=19,
merge=True,
),
20: Cfg(
url="DOUJIN_URL/event/topic/",
url_mobile=None,
anchor="#post_",
prefix="在你的展会讨论",
suffix="中发表了新回复",
id=20,
hash=20,
merge=True,
),
21: Cfg(
url="DOUJIN_URL/event/topic/",
url_mobile=None,
anchor="#post_",
prefix="在展会讨论",
suffix="中回复了你",
id=21,
hash=20,
merge=True,
),
22: Cfg(
url="https://bgm.tv/user/chobits_user/timeline/status/",
url_mobile=None,
anchor="#post_",
prefix='回复了你的 <a href="%2$s%3$s" class="nt_link link_%4$s" target="_blank">吐槽</a>',
suffix="",
id=22,
hash=22,
merge=True,
),
23: Cfg(
url="https://bgm.tv/group/topic/",
url_mobile="MOBILE_URL/topic/group/",
anchor="#post_",
prefix="在小组话题",
suffix="中提到了你",
id=23,
hash=1,
merge=True,
),
24: Cfg(
url="https://bgm.tv/subject/topic/",
url_mobile="MOBILE_URL/topic/subject/",
anchor="#post_",
prefix="在条目讨论",
suffix="中提到了你",
id=24,
hash=3,
merge=True,
),
25: Cfg(
url="https://bgm.tv/character/",
url_mobile="MOBILE_URL/topic/crt/",
anchor="#post_",
prefix="在角色",
suffix="中提到了你",
id=25,
hash=5,
merge=True,
),
26: Cfg(
url="https://bgm.tv/person/",
url_mobile="MOBILE_URL/topic/prsn/",
anchor="#post_",
prefix="在人物讨论",
suffix="中提到了你",
id=26,
hash=5,
merge=True,
),
27: Cfg(
url="https://bgm.tv/index/",
url_mobile=None,
anchor="#post_",
prefix="在目录",
suffix="中提到了你",
id=28,
hash=11,
merge=True,
),
28: Cfg(
url="https://bgm.tv/user/chobits_user/timeline/status/",
url_mobile=None,
anchor="#post_",
prefix="在",
suffix="中提到了你",
id=28,
hash=22,
merge=True,
),
29: Cfg(
url="https://bgm.tv/blog/",
url_mobile=None,
anchor="#post_",
prefix="在日志",
suffix="中提到了你",
id=29,
hash=7,
merge=True,
),
30: Cfg(
url="https://bgm.tv/subject/ep/",
url_mobile="MOBILE_URL/topic/ep/",
anchor="#post_",
prefix="在章节讨论",
suffix="中提到了你",
id=30,
hash=9,
merge=True,
),
31: Cfg(
url="DOUJIN_URL/club/",
url_mobile=None,
anchor="/shoutbox#post_",
prefix="在社团",
suffix="的留言板中提到了你",
id=31,
hash=31,
merge=True,
),
32: Cfg(
url="DOUJIN_URL/club/topic/",
url_mobile=None,
anchor="#post_",
prefix="在社团讨论",
suffix="中提到了你",
id=32,
hash=17,
merge=True,
),
33: Cfg(
url="DOUJIN_URL/subject/",
url_mobile=None,
anchor="#post_",
prefix="在同人作品",
suffix="中提到了你",
id=33,
hash=19,
merge=True,
),
34: Cfg(
url="DOUJIN_URL/event/topic/",
url_mobile=None,
anchor="#post_",
prefix="在展会讨论",
suffix="中提到了你",
id=34,
hash=20,
merge=True,
),
}