koishi-plugin-anime-schedule 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/config.d.ts +6 -6
- package/lib/config.js +75 -73
- package/lib/constants.d.ts +16 -3
- package/lib/constants.js +17 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js +32 -26
- package/lib/render/covers.js +2 -2
- package/lib/render/fonts.js +20 -8
- package/lib/services/digest.d.ts +10 -0
- package/lib/services/digest.js +129 -24
- package/lib/services/network.d.ts +5 -1
- package/lib/services/network.js +7 -3
- package/lib/services/verdicts.d.ts +85 -0
- package/lib/services/verdicts.js +241 -0
- package/package.json +1 -1
- package/readme.md +45 -51
package/lib/config.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export interface Config {
|
|
|
19
19
|
updatePollMinutes: number;
|
|
20
20
|
};
|
|
21
21
|
content: {
|
|
22
|
-
/**
|
|
22
|
+
/** 单个番组表最多展示的作品数,0 表示不限制 */
|
|
23
23
|
maxItems: number;
|
|
24
|
-
/**
|
|
24
|
+
/** 当前话数达到该值的作品不展示,0 表示不过滤 */
|
|
25
25
|
longRunningThreshold: number;
|
|
26
26
|
};
|
|
27
27
|
output: {
|
|
@@ -37,11 +37,11 @@ export interface Config {
|
|
|
37
37
|
localize: {
|
|
38
38
|
enabled: boolean;
|
|
39
39
|
titleStyle: TitleStyle;
|
|
40
|
-
/**
|
|
40
|
+
/** 标题与封面地址的缓存天数 */
|
|
41
41
|
cacheTtlDays: number;
|
|
42
|
-
/**
|
|
42
|
+
/** 评分与评价人数的刷新间隔(小时) */
|
|
43
43
|
scoreTtlHours: number;
|
|
44
|
-
/**
|
|
44
|
+
/** AniList 播出状态的缓存有效期,单位小时 */
|
|
45
45
|
airingTtlHours: number;
|
|
46
46
|
};
|
|
47
47
|
render: {
|
|
@@ -54,7 +54,7 @@ export interface Config {
|
|
|
54
54
|
supersample: number;
|
|
55
55
|
};
|
|
56
56
|
subscription: {
|
|
57
|
-
/**
|
|
57
|
+
/** 单个群或私聊最多订阅的番剧数量,0 表示不限制 */
|
|
58
58
|
maxPerChannel: number;
|
|
59
59
|
};
|
|
60
60
|
advanced: {
|
package/lib/config.js
CHANGED
|
@@ -24,115 +24,99 @@ exports.Config = koishi_1.Schema.intersect([
|
|
|
24
24
|
koishi_1.Schema.const('Asia/Taipei').description('Asia/Taipei (UTC+8)'),
|
|
25
25
|
koishi_1.Schema.const('UTC').description('UTC'),
|
|
26
26
|
])
|
|
27
|
-
.description('
|
|
27
|
+
.description('日期与时刻的换算时区')
|
|
28
28
|
.default('Asia/Shanghai'),
|
|
29
29
|
locale: koishi_1.Schema.union([
|
|
30
30
|
koishi_1.Schema.const('zh-CN').description('简体中文'),
|
|
31
31
|
koishi_1.Schema.const('ja-JP').description('日本語'),
|
|
32
32
|
koishi_1.Schema.const('en-US').description('English'),
|
|
33
33
|
])
|
|
34
|
-
.description('
|
|
34
|
+
.description('推送、列表与详情的文案语言')
|
|
35
35
|
.default('zh-CN'),
|
|
36
|
-
}),
|
|
36
|
+
}).description('基本'),
|
|
37
37
|
koishi_1.Schema.object({
|
|
38
38
|
push: koishi_1.Schema.object({
|
|
39
39
|
dailyEnabled: koishi_1.Schema.boolean().description('每日更新表').default(true),
|
|
40
|
-
|
|
41
|
-
dailyOffsetDays: koishi_1.Schema.number()
|
|
42
|
-
.min(constants_1.DAILY_OFFSET_MIN).max(constants_1.DAILY_OFFSET_MAX).step(1)
|
|
43
|
-
.description('日期偏移,0 当天、-1 前一天、1 后一天')
|
|
44
|
-
.default(0),
|
|
45
|
-
nightEnabled: koishi_1.Schema.boolean().description('深夜档,当晚 21:00 至次日 06:00').default(true),
|
|
46
|
-
nightTime: koishi_1.Schema.string().pattern(TIME_PATTERN).description('推送时刻').default('21:00'),
|
|
40
|
+
nightEnabled: koishi_1.Schema.boolean().description('深夜档(21:00–06:00)').default(true),
|
|
47
41
|
weeklyEnabled: koishi_1.Schema.boolean().description('本周更新表').default(true),
|
|
42
|
+
seasonEnabled: koishi_1.Schema.boolean().description('本季新番表').default(true),
|
|
43
|
+
updateReminderEnabled: koishi_1.Schema.boolean().description('订阅开播提醒').default(true),
|
|
44
|
+
dailyTime: koishi_1.Schema.string().pattern(TIME_PATTERN).description('每日推送时刻(HH:mm)').default('08:00'),
|
|
45
|
+
nightTime: koishi_1.Schema.string().pattern(TIME_PATTERN).description('深夜档推送时刻(HH:mm)').default('21:00'),
|
|
46
|
+
weeklyTime: koishi_1.Schema.string().pattern(TIME_PATTERN).description('周表推送时刻(HH:mm)').default('08:00'),
|
|
47
|
+
seasonTime: koishi_1.Schema.string().pattern(TIME_PATTERN).description('季度首日推送时刻(HH:mm)').default('08:00'),
|
|
48
48
|
weeklyWeekday: koishi_1.Schema.union(WEEKDAYS.map((item) => koishi_1.Schema.const(item.value).description(item.label)))
|
|
49
|
-
.description('
|
|
49
|
+
.description('周表推送星期')
|
|
50
50
|
.default(1),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
dailyOffsetDays: koishi_1.Schema.number()
|
|
52
|
+
.min(constants_1.DAILY_OFFSET_MIN).max(constants_1.DAILY_OFFSET_MAX).step(1)
|
|
53
|
+
.description('定时每日表的日期偏移:0 今天,-1 昨天,1 明天')
|
|
54
|
+
.default(0),
|
|
55
55
|
updateLookaheadMinutes: koishi_1.Schema.number()
|
|
56
56
|
.min(1).step(1)
|
|
57
|
-
.description('
|
|
57
|
+
.description('开播提醒提前分钟数')
|
|
58
58
|
.default(30),
|
|
59
59
|
updatePollMinutes: koishi_1.Schema.number()
|
|
60
60
|
.min(1).step(1)
|
|
61
|
-
.description('
|
|
61
|
+
.description('开播提醒检查间隔(分钟;不会超过提前量)')
|
|
62
62
|
.default(10),
|
|
63
63
|
}),
|
|
64
|
-
}).description('
|
|
64
|
+
}).description('推送'),
|
|
65
|
+
koishi_1.Schema.object({
|
|
66
|
+
subscription: koishi_1.Schema.object({
|
|
67
|
+
maxPerChannel: koishi_1.Schema.number()
|
|
68
|
+
.min(0).step(1)
|
|
69
|
+
.description('单个群或私聊的订阅上限,0 不限制')
|
|
70
|
+
.default(0),
|
|
71
|
+
}),
|
|
72
|
+
}).description('订阅'),
|
|
65
73
|
koishi_1.Schema.object({
|
|
66
74
|
content: koishi_1.Schema.object({
|
|
67
75
|
maxItems: koishi_1.Schema.number()
|
|
68
76
|
.min(0).step(1)
|
|
69
|
-
.description('
|
|
77
|
+
.description('单个番组表最多显示几部,0 不限制')
|
|
70
78
|
.default(0),
|
|
71
79
|
longRunningThreshold: koishi_1.Schema.number()
|
|
72
80
|
.min(0).step(1)
|
|
73
|
-
.description('
|
|
81
|
+
.description('更新表中当前话数达到该值的作品不显示,0 不限制')
|
|
74
82
|
.default(0),
|
|
75
83
|
}),
|
|
76
|
-
}).description('
|
|
84
|
+
}).description('番组表内容'),
|
|
77
85
|
koishi_1.Schema.object({
|
|
78
86
|
output: koishi_1.Schema.object({
|
|
79
87
|
format: koishi_1.Schema.union([
|
|
80
|
-
koishi_1.Schema.const('image').description('
|
|
81
|
-
koishi_1.Schema.const('text').description('
|
|
88
|
+
koishi_1.Schema.const('image').description('图片'),
|
|
89
|
+
koishi_1.Schema.const('text').description('文本'),
|
|
82
90
|
])
|
|
83
|
-
.description('
|
|
91
|
+
.description('番组表与详情的输出形态;图片失败时自动改用文本')
|
|
84
92
|
.default('image'),
|
|
85
93
|
layout: koishi_1.Schema.union([
|
|
86
94
|
koishi_1.Schema.const('table').description('时间表'),
|
|
87
95
|
koishi_1.Schema.const('list').description('卡片列表'),
|
|
88
96
|
])
|
|
89
|
-
.description('
|
|
97
|
+
.description('番组表图片的排版')
|
|
90
98
|
.default('table'),
|
|
99
|
+
showCover: koishi_1.Schema.boolean().description('番组表图片中显示封面').default(true),
|
|
100
|
+
showScore: koishi_1.Schema.boolean()
|
|
101
|
+
.description('番组表与搜索结果中显示 Bangumi 评分;需开启本地化,评价不足 10 条时隐藏')
|
|
102
|
+
.default(true),
|
|
103
|
+
useForward: koishi_1.Schema.boolean()
|
|
104
|
+
.description('多段文本使用合并转发(群聊且适配器支持时)')
|
|
105
|
+
.default(true),
|
|
91
106
|
coverLimit: koishi_1.Schema.number()
|
|
92
107
|
.min(0)
|
|
93
|
-
.description('
|
|
108
|
+
.description('单张番组表图最多加载几张封面,0 不限制')
|
|
94
109
|
.default(0),
|
|
95
110
|
infoKeywordLimit: koishi_1.Schema.number()
|
|
96
111
|
.min(0)
|
|
97
|
-
.description('anime.info
|
|
112
|
+
.description('anime.info 关键词查询最多显示几部,0 不限制')
|
|
98
113
|
.default(20),
|
|
99
|
-
showCover: koishi_1.Schema.boolean().description('显示封面').default(true),
|
|
100
|
-
showScore: koishi_1.Schema.boolean().description('显示评分,评价不足 10 条时隐藏').default(true),
|
|
101
|
-
useForward: koishi_1.Schema.boolean()
|
|
102
|
-
.description('纯文本模式用合并转发,避免刷屏')
|
|
103
|
-
.default(true),
|
|
104
114
|
}),
|
|
105
|
-
}).description('
|
|
106
|
-
koishi_1.Schema.object({
|
|
107
|
-
localize: koishi_1.Schema.object({
|
|
108
|
-
enabled: koishi_1.Schema.boolean()
|
|
109
|
-
.description('使用中文标题与评分')
|
|
110
|
-
.default(true),
|
|
111
|
-
titleStyle: koishi_1.Schema.union([
|
|
112
|
-
koishi_1.Schema.const('localized').description('仅中文'),
|
|
113
|
-
koishi_1.Schema.const('both').description('中文(日文原名)'),
|
|
114
|
-
koishi_1.Schema.const('original').description('仅日文原名'),
|
|
115
|
-
])
|
|
116
|
-
.description('标题展示方式')
|
|
117
|
-
.default('localized'),
|
|
118
|
-
scoreTtlHours: koishi_1.Schema.number()
|
|
119
|
-
.min(1).step(1)
|
|
120
|
-
.description('评分多久后台补取一次(小时),到期不阻塞构建')
|
|
121
|
-
.default(constants_1.DEFAULT_SCORE_TTL_HOURS),
|
|
122
|
-
cacheTtlDays: koishi_1.Schema.number()
|
|
123
|
-
.min(1).step(1)
|
|
124
|
-
.description('标题与封面的缓存天数')
|
|
125
|
-
.default(30),
|
|
126
|
-
airingTtlHours: koishi_1.Schema.number()
|
|
127
|
-
.min(1).step(1)
|
|
128
|
-
.description('是否已播完的缓存小时数')
|
|
129
|
-
.default(6),
|
|
130
|
-
}),
|
|
131
|
-
}).description('本地化'),
|
|
115
|
+
}).description('输出'),
|
|
132
116
|
koishi_1.Schema.object({
|
|
133
117
|
render: koishi_1.Schema.object({
|
|
134
118
|
fontFamily: koishi_1.Schema.string()
|
|
135
|
-
.description('
|
|
119
|
+
.description('图片字体;默认自动加载系统中文字体,也可填写本机已安装的字体')
|
|
136
120
|
.default(constants_1.DEFAULT_FONT_FAMILY),
|
|
137
121
|
coverConcurrency: koishi_1.Schema.number()
|
|
138
122
|
.min(1)
|
|
@@ -140,41 +124,59 @@ exports.Config = koishi_1.Schema.intersect([
|
|
|
140
124
|
.default(constants_1.COVER_CONCURRENCY),
|
|
141
125
|
coverCacheDays: koishi_1.Schema.number()
|
|
142
126
|
.min(0)
|
|
143
|
-
.description('
|
|
127
|
+
.description('封面磁盘缓存天数,0 不写磁盘')
|
|
144
128
|
.default(21),
|
|
145
129
|
jpegQuality: koishi_1.Schema.number()
|
|
146
130
|
.min(1).max(100).step(1)
|
|
147
|
-
.description('
|
|
131
|
+
.description('JPEG 质量(1–100),越高越清晰、体积越大')
|
|
148
132
|
.default(constants_1.DEFAULT_JPEG_QUALITY),
|
|
149
133
|
supersample: koishi_1.Schema.number()
|
|
150
134
|
.min(1).max(constants_1.MAX_SUPERSAMPLE).step(1)
|
|
151
|
-
.description('
|
|
135
|
+
.description('超采样倍数(1–5),越高越清晰、耗时与体积越大')
|
|
152
136
|
.default(constants_1.DEFAULT_SUPERSAMPLE),
|
|
153
137
|
}),
|
|
154
138
|
}).description('图片'),
|
|
155
139
|
koishi_1.Schema.object({
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
.
|
|
159
|
-
.
|
|
160
|
-
|
|
140
|
+
localize: koishi_1.Schema.object({
|
|
141
|
+
enabled: koishi_1.Schema.boolean()
|
|
142
|
+
.description('优先使用中文标题与 Bangumi 评分')
|
|
143
|
+
.default(true),
|
|
144
|
+
titleStyle: koishi_1.Schema.union([
|
|
145
|
+
koishi_1.Schema.const('localized').description('仅中文'),
|
|
146
|
+
koishi_1.Schema.const('both').description('中文(日文原名)'),
|
|
147
|
+
koishi_1.Schema.const('original').description('仅日文原名'),
|
|
148
|
+
])
|
|
149
|
+
.description('本地化开启时的标题展示方式')
|
|
150
|
+
.default('localized'),
|
|
151
|
+
cacheTtlDays: koishi_1.Schema.number()
|
|
152
|
+
.min(1).step(1)
|
|
153
|
+
.description('标题与封面地址的缓存天数')
|
|
154
|
+
.default(30),
|
|
155
|
+
scoreTtlHours: koishi_1.Schema.number()
|
|
156
|
+
.min(1).step(1)
|
|
157
|
+
.description('评分与评价人数的刷新间隔(小时)')
|
|
158
|
+
.default(constants_1.DEFAULT_SCORE_TTL_HOURS),
|
|
159
|
+
airingTtlHours: koishi_1.Schema.number()
|
|
160
|
+
.min(1).step(1)
|
|
161
|
+
.description('AniList 播出状态缓存(小时)')
|
|
162
|
+
.default(6),
|
|
161
163
|
}),
|
|
162
|
-
}).description('
|
|
164
|
+
}).description('本地化'),
|
|
163
165
|
koishi_1.Schema.object({
|
|
164
166
|
advanced: koishi_1.Schema.object({
|
|
165
167
|
requestTimeout: koishi_1.Schema.number()
|
|
166
168
|
.min(1)
|
|
167
|
-
.description('
|
|
169
|
+
.description('默认请求超时(秒)')
|
|
168
170
|
.default(constants_1.LOCALIZE_TIMEOUT_SECONDS),
|
|
169
171
|
retries: koishi_1.Schema.number()
|
|
170
172
|
.min(0)
|
|
171
|
-
.description('
|
|
173
|
+
.description('请求失败后的默认重试次数')
|
|
172
174
|
.default(2),
|
|
173
175
|
debug: koishi_1.Schema.boolean()
|
|
174
|
-
.description('
|
|
176
|
+
.description('输出调试日志')
|
|
175
177
|
.default(false),
|
|
176
178
|
}),
|
|
177
|
-
}).description('
|
|
179
|
+
}).description('高级'),
|
|
178
180
|
]);
|
|
179
181
|
/** 把配置夹到安全区间:只保证类型正确且不小于最小值,不设人为上限 */
|
|
180
182
|
function normalizeConfig(config) {
|
package/lib/constants.d.ts
CHANGED
|
@@ -95,6 +95,20 @@ export declare const MIN_SCORE_VOTES = 10;
|
|
|
95
95
|
export declare const LOCALIZE_CACHE_VERSION = 6;
|
|
96
96
|
/** 本地化缓存最大条目数,超出后按写入时间淘汰最旧的一半 */
|
|
97
97
|
export declare const LOCALIZE_CACHE_MAX_ENTRIES = 5000;
|
|
98
|
+
/**
|
|
99
|
+
* 「不采信 / 已剔除」判定缓存的版本与有效期。
|
|
100
|
+
*
|
|
101
|
+
* 这些判定的输入都是慢变量(bangumi-data 的 `aniList` ID、Bangumi 逐集档期),
|
|
102
|
+
* 但上游偶尔会修数据,因此不设永久缓存:AniList 判定 7 天后复核,Bangumi 档期判定
|
|
103
|
+
* 30 天后复核(与本地化缓存一致)。
|
|
104
|
+
*/
|
|
105
|
+
export declare const VERDICT_CACHE_VERSION = 1;
|
|
106
|
+
export declare const VERDICT_CACHE_FILE = "verdicts.json";
|
|
107
|
+
export declare const VERDICT_CACHE_MAX_ENTRIES = 5000;
|
|
108
|
+
/** AniList 判定只保留 7 天:它来自外部 API,短周期复核更稳妥 */
|
|
109
|
+
export declare const ANILIST_VERDICT_TTL_MS: number;
|
|
110
|
+
/** Bangumi 逐集档期判定来自本地化缓存,跟它一样保留 30 天 */
|
|
111
|
+
export declare const EPISODE_VERDICT_TTL_MS: number;
|
|
98
112
|
/** 取逐集档期时的单页集数上限;超过这个数的长期番不靠集数判断完结 */
|
|
99
113
|
export declare const EPISODE_QUERY_LIMIT = 100;
|
|
100
114
|
/**
|
|
@@ -116,9 +130,8 @@ export declare const COVER_CONCURRENCY = 8;
|
|
|
116
130
|
/** 封面下载超时与体积上限,避免个别大图拖垮整次渲染 */
|
|
117
131
|
export declare const COVER_TIMEOUT_MS = 8000;
|
|
118
132
|
export declare const COVER_MAX_BYTES: number;
|
|
119
|
-
/** 封面磁盘缓存目录(相对于 ctx.baseDir
|
|
133
|
+
/** 封面磁盘缓存目录(相对于 ctx.baseDir)与数量上限 */
|
|
120
134
|
export declare const COVER_CACHE_DIR: string[];
|
|
121
|
-
export declare const COVER_CACHE_TTL_MS: number;
|
|
122
135
|
export declare const COVER_CACHE_MAX_FILES = 1200;
|
|
123
136
|
/**
|
|
124
137
|
* 内存里保留的解码后封面总量上限(按 RGBA 字节算)。
|
|
@@ -169,7 +182,7 @@ export declare const DAILY_OFFSET_MAX = 7;
|
|
|
169
182
|
export declare const BUILD_CACHE_TTL_MS: number;
|
|
170
183
|
/** 构建结果同时留存几份(日/深夜/周/季 × 少量偏移),超出丢最早的一份 */
|
|
171
184
|
export declare const BUILD_CACHE_MAX_ENTRIES = 16;
|
|
172
|
-
/**
|
|
185
|
+
/** 默认字体别名;实际字体文件由 registerFonts 从系统字体中加载 */
|
|
173
186
|
export declare const DEFAULT_FONT_FAMILY = "Anime Schedule Sans";
|
|
174
187
|
/**
|
|
175
188
|
* 图片版式常量。
|
package/lib/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LOG_MESSAGES = exports.RESPONSES = exports.MESSAGES = exports.IMAGE_THEME = exports.IMAGE_LAYOUT = exports.DEFAULT_FONT_FAMILY = exports.BUILD_CACHE_MAX_ENTRIES = exports.BUILD_CACHE_TTL_MS = exports.DAILY_OFFSET_MAX = exports.DAILY_OFFSET_MIN = exports.MAX_SUPERSAMPLE = exports.DEFAULT_SUPERSAMPLE = exports.DEFAULT_JPEG_QUALITY = exports.BOLD_FONT_CANDIDATES = exports.FONT_CANDIDATES = exports.COVER_MEMORY_MAX_BYTES = exports.COVER_CACHE_MAX_FILES = exports.
|
|
3
|
+
exports.LOG_MESSAGES = exports.RESPONSES = exports.MESSAGES = exports.IMAGE_THEME = exports.IMAGE_LAYOUT = exports.DEFAULT_FONT_FAMILY = exports.BUILD_CACHE_MAX_ENTRIES = exports.BUILD_CACHE_TTL_MS = exports.DAILY_OFFSET_MAX = exports.DAILY_OFFSET_MIN = exports.MAX_SUPERSAMPLE = exports.DEFAULT_SUPERSAMPLE = exports.DEFAULT_JPEG_QUALITY = exports.BOLD_FONT_CANDIDATES = exports.FONT_CANDIDATES = exports.COVER_MEMORY_MAX_BYTES = exports.COVER_CACHE_MAX_FILES = exports.COVER_CACHE_DIR = exports.COVER_MAX_BYTES = exports.COVER_TIMEOUT_MS = exports.COVER_CONCURRENCY = exports.LOCALIZE_TIMEOUT_SECONDS = exports.LOCALIZE_CONCURRENCY = exports.EPISODE_QUERY_LIMIT = exports.EPISODE_VERDICT_TTL_MS = exports.ANILIST_VERDICT_TTL_MS = exports.VERDICT_CACHE_MAX_ENTRIES = exports.VERDICT_CACHE_FILE = exports.VERDICT_CACHE_VERSION = exports.LOCALIZE_CACHE_MAX_ENTRIES = exports.LOCALIZE_CACHE_VERSION = exports.MIN_SCORE_VOTES = exports.DEFAULT_SCORE_TTL_HOURS = exports.LOCALIZE_CACHE_FILE = exports.LATE_NIGHT_END_HOUR = exports.IMAGE_LIST_TWO_COLUMN_AT = exports.IMAGE_MAX_CARDS = exports.DIGEST_LABELS = exports.PLUGIN_HOMEPAGE = exports.PLUGIN_VERSION = exports.DATA_DIR = exports.BANGUMI_DATA_FILE = exports.BANGUMI_DATA_FALLBACK_URLS = exports.ANILIST_COOLDOWN_MS = exports.ANILIST_MIN_INTERVAL_MS = exports.ANILIST_BATCH_SIZE = exports.ANILIST_API_URL = exports.BANGUMI_API_HOST = exports.PLUGIN_NAME = void 0;
|
|
4
4
|
exports.buildUserAgent = buildUserAgent;
|
|
5
5
|
exports.getMessages = getMessages;
|
|
6
6
|
/** 插件名,同时作为日志前缀与 User-Agent 主体 */
|
|
@@ -119,6 +119,20 @@ exports.MIN_SCORE_VOTES = 10;
|
|
|
119
119
|
exports.LOCALIZE_CACHE_VERSION = 6;
|
|
120
120
|
/** 本地化缓存最大条目数,超出后按写入时间淘汰最旧的一半 */
|
|
121
121
|
exports.LOCALIZE_CACHE_MAX_ENTRIES = 5000;
|
|
122
|
+
/**
|
|
123
|
+
* 「不采信 / 已剔除」判定缓存的版本与有效期。
|
|
124
|
+
*
|
|
125
|
+
* 这些判定的输入都是慢变量(bangumi-data 的 `aniList` ID、Bangumi 逐集档期),
|
|
126
|
+
* 但上游偶尔会修数据,因此不设永久缓存:AniList 判定 7 天后复核,Bangumi 档期判定
|
|
127
|
+
* 30 天后复核(与本地化缓存一致)。
|
|
128
|
+
*/
|
|
129
|
+
exports.VERDICT_CACHE_VERSION = 1;
|
|
130
|
+
exports.VERDICT_CACHE_FILE = 'verdicts.json';
|
|
131
|
+
exports.VERDICT_CACHE_MAX_ENTRIES = 5000;
|
|
132
|
+
/** AniList 判定只保留 7 天:它来自外部 API,短周期复核更稳妥 */
|
|
133
|
+
exports.ANILIST_VERDICT_TTL_MS = 7 * 24 * 60 * 60 * 1000;
|
|
134
|
+
/** Bangumi 逐集档期判定来自本地化缓存,跟它一样保留 30 天 */
|
|
135
|
+
exports.EPISODE_VERDICT_TTL_MS = 30 * 24 * 60 * 60 * 1000;
|
|
122
136
|
/** 取逐集档期时的单页集数上限;超过这个数的长期番不靠集数判断完结 */
|
|
123
137
|
exports.EPISODE_QUERY_LIMIT = 100;
|
|
124
138
|
/**
|
|
@@ -140,9 +154,8 @@ exports.COVER_CONCURRENCY = 8;
|
|
|
140
154
|
/** 封面下载超时与体积上限,避免个别大图拖垮整次渲染 */
|
|
141
155
|
exports.COVER_TIMEOUT_MS = 8000;
|
|
142
156
|
exports.COVER_MAX_BYTES = 4 * 1024 * 1024;
|
|
143
|
-
/** 封面磁盘缓存目录(相对于 ctx.baseDir
|
|
157
|
+
/** 封面磁盘缓存目录(相对于 ctx.baseDir)与数量上限 */
|
|
144
158
|
exports.COVER_CACHE_DIR = ['data', 'anime-schedule', 'covers'];
|
|
145
|
-
exports.COVER_CACHE_TTL_MS = 21 * 24 * 60 * 60 * 1000;
|
|
146
159
|
exports.COVER_CACHE_MAX_FILES = 1200;
|
|
147
160
|
/**
|
|
148
161
|
* 内存里保留的解码后封面总量上限(按 RGBA 字节算)。
|
|
@@ -214,7 +227,7 @@ exports.DAILY_OFFSET_MAX = 7;
|
|
|
214
227
|
exports.BUILD_CACHE_TTL_MS = 5 * 60 * 1000;
|
|
215
228
|
/** 构建结果同时留存几份(日/深夜/周/季 × 少量偏移),超出丢最早的一份 */
|
|
216
229
|
exports.BUILD_CACHE_MAX_ENTRIES = 16;
|
|
217
|
-
/**
|
|
230
|
+
/** 默认字体别名;实际字体文件由 registerFonts 从系统字体中加载 */
|
|
218
231
|
exports.DEFAULT_FONT_FAMILY = 'Anime Schedule Sans';
|
|
219
232
|
/**
|
|
220
233
|
* 图片版式常量。
|
package/lib/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export declare const inject: {
|
|
|
5
5
|
required: string[];
|
|
6
6
|
};
|
|
7
7
|
export { ConfigSchema as Config };
|
|
8
|
-
export declare const usage = "\n\u756A\u5267\u66F4\u65B0\u8868\u4E0E\u8BA2\u9605\u63D0\u9192\u3002\u4F5C\u54C1\u6E05\u5355\u6765\u81EA [bangumi-data](https://github.com/bangumi-data/bangumi-data)\uFF0C\
|
|
8
|
+
export declare const usage = "\n\u756A\u5267\u66F4\u65B0\u8868\u4E0E\u8BA2\u9605\u63D0\u9192\u3002\u4F5C\u54C1\u6E05\u5355\u6765\u81EA [bangumi-data](https://github.com/bangumi-data/bangumi-data)\uFF0C\u4E2D\u6587\u6807\u9898\u3001\u5C01\u9762\u4E0E\u8BC4\u5206\u6765\u81EA [Bangumi](https://bgm.tv/)\uFF0C\u6392\u671F\u4E0E\u64AD\u51FA\u72B6\u6001\u67E5\u8BE2 [AniList](https://anilist.co/)\u3002\n\n\u5728\u7FA4\u804A\u91CC\u6267\u884C\u4E00\u6B21 `anime.on` \u540E\u5F00\u59CB\u63A5\u6536\u5B9A\u65F6\u63A8\u9001\u3002\n\n| \u6307\u4EE4 | \u522B\u540D | \u8BF4\u660E |\n| :--- | :--- | :--- |\n| `anime` | \u756A\u5267 / \u65B0\u756A | \u4ECA\u65E5\u66F4\u65B0\u8868 |\n| `anime.today [-o \u504F\u79FB]` | \u4ECA\u65E5\u65B0\u756A | \u4ECA\u65E5\u66F4\u65B0\uFF1B`-o -1` \u770B\u6628\u5929 |\n| `anime.night` | \u6DF1\u591C\u65B0\u756A | \u4ECA\u665A 21:00 \u81F3\u6B21\u65E5 06:00 |\n| `anime.week` | \u672C\u5468\u65B0\u756A | \u4ECA\u5929\u8D77\u4E03\u5929 |\n| `anime.season [\u5B63\u5EA6]` | \u672C\u5B63\u65B0\u756A | \u672C\u5B63\u52A8\u753B\uFF1B`-o -1` \u770B\u4E0A\u4E00\u5B63 |\n| `anime.search <\u5173\u952E\u8BCD>` | \u756A\u5267\u641C\u7D22 | \u4E2D\u65E5\u82F1\u6587\u6807\u9898\u5747\u53EF |\n| `anime.info <ID\u3001\u5E8F\u53F7\u6216\u5173\u952E\u8BCD>` | \u756A\u5267\u8BE6\u60C5 | \u7B80\u4ECB\u3001\u72B6\u6001\u3001\u8BDD\u6570\u3001\u8BC4\u5206\u4E0E\u9010\u96C6\u8FDB\u5EA6 |\n| `anime.sub <ID>` | \u756A\u5267\u8BA2\u9605 | \u4F7F\u7528 Bangumi \u6761\u76EE ID |\n| `anime.remove <ID \u6216\u5E8F\u53F7>` | \u9000\u8BA2 | \u4E5F\u63A5\u53D7\u8BA2\u9605\u5217\u8868\u4E2D\u7684\u5E8F\u53F7 |\n| `anime.list` | \u8BA2\u9605\u5217\u8868 | \u672C\u7FA4\u5DF2\u8BA2\u9605\u4F5C\u54C1 |\n| `anime.clear` | \u6E05\u7A7A\u8BA2\u9605 | \u5220\u9664\u672C\u7FA4\u5168\u90E8\u8BA2\u9605 |\n| `anime.next [\u5929\u6570]` | \u8FFD\u756A\u8BA1\u5212 | \u672A\u6765 1 \u81F3 31 \u5929\u7684\u6392\u671F |\n| `anime.on / anime.off [\u7C7B\u578B]` | \u5F00\u542F\u63A8\u9001 / \u5173\u95ED\u63A8\u9001 | \u53EF\u53EA\u5F00\u5173\u67D0\u4E00\u7C7B\u63A8\u9001 |\n| `anime.status` | \u63A8\u9001\u72B6\u6001 | \u67E5\u770B\u672C\u7FA4\u63A8\u9001\u8BBE\u7F6E |\n| `anime.push <\u7C7B\u578B>` | \u7ACB\u5373\u63A8\u9001 | \u624B\u52A8\u53D1\u9001\u4E00\u6B21 |\n\n\u63A8\u9001\u7C7B\u578B\uFF1A`daily`\u3001`night`\u3001`weekly`\u3001`season`\uFF0C\u53D1\u9001\u65F6\u95F4\u5728\u63A7\u5236\u53F0\u914D\u7F6E\u3002\n\n\u6BCF\u65E5\u3001\u6DF1\u591C\u4E0E\u672C\u5468\u53EA\u663E\u793A\u4ECD\u5728\u64AD\u51FA\u7684\u4F5C\u54C1\uFF1B\u672C\u5B63\u8868\u6536\u5F55\u8BE5\u5B63\u9996\u64AD\u7684\u5168\u90E8 TV / WEB \u52A8\u753B\u3002\n\n\u5361\u7247\u4E0A\u7684 `ID:xxx` \u53EF\u76F4\u63A5\u7528\u4E8E\u8BA2\u9605\uFF1B`anime.info` \u4E5F\u652F\u6301\u641C\u7D22\u7ED3\u679C\u5E8F\u53F7\u6216\u5173\u952E\u8BCD\u3002\n\n\u53D6\u4E0D\u5230\u5C01\u9762\u6216\u8BC4\u5206\u65F6\uFF0C\u53EF\u5B89\u88C5\u5E76\u542F\u7528 **[proxy-agent](/market/?keyword=proxy-agent)** \u914D\u7F6E\u4EE3\u7406\u3002\n";
|
|
9
9
|
export declare function apply(ctx: Context, rawConfig: Config): void;
|
package/lib/index.js
CHANGED
|
@@ -25,35 +25,35 @@ function formatOffset(timeZone) {
|
|
|
25
25
|
exports.name = constants_1.PLUGIN_NAME;
|
|
26
26
|
exports.inject = { required: ['database', 'http'] };
|
|
27
27
|
exports.usage = `
|
|
28
|
-
番剧更新表与订阅提醒。作品清单来自 [bangumi-data](https://github.com/bangumi-data/bangumi-data)
|
|
29
|
-
中文标题、封面与评分取自 [Bangumi](https://bgm.tv/),排期与播出状态查询 [AniList](https://anilist.co/)
|
|
28
|
+
番剧更新表与订阅提醒。作品清单来自 [bangumi-data](https://github.com/bangumi-data/bangumi-data),中文标题、封面与评分来自 [Bangumi](https://bgm.tv/),排期与播出状态查询 [AniList](https://anilist.co/)。
|
|
30
29
|
|
|
31
|
-
在群聊里执行一次 \`anime.on\`
|
|
30
|
+
在群聊里执行一次 \`anime.on\` 后开始接收定时推送。
|
|
32
31
|
|
|
33
32
|
| 指令 | 别名 | 说明 |
|
|
34
33
|
| :--- | :--- | :--- |
|
|
35
|
-
| \`anime
|
|
34
|
+
| \`anime\` | 番剧 / 新番 | 今日更新表 |
|
|
35
|
+
| \`anime.today [-o 偏移]\` | 今日新番 | 今日更新;\`-o -1\` 看昨天 |
|
|
36
36
|
| \`anime.night\` | 深夜新番 | 今晚 21:00 至次日 06:00 |
|
|
37
37
|
| \`anime.week\` | 本周新番 | 今天起七天 |
|
|
38
|
-
| \`anime.season [季度]\` | 本季新番 |
|
|
39
|
-
| \`anime.search <关键词>\` | 番剧搜索 |
|
|
40
|
-
| \`anime.info <ID
|
|
41
|
-
| \`anime.sub <ID>\` | 番剧订阅 |
|
|
42
|
-
| \`anime.remove <ID
|
|
43
|
-
| \`anime.list\` | 订阅列表 |
|
|
44
|
-
| \`anime.clear\` | 清空订阅 |
|
|
45
|
-
| \`anime.next [天数]\` | 追番计划 |
|
|
46
|
-
| \`anime.on
|
|
47
|
-
| \`anime.status\` | 推送状态 |
|
|
48
|
-
| \`anime.push <类型>\` | 立即推送 |
|
|
38
|
+
| \`anime.season [季度]\` | 本季新番 | 本季动画;\`-o -1\` 看上一季 |
|
|
39
|
+
| \`anime.search <关键词>\` | 番剧搜索 | 中日英文标题均可 |
|
|
40
|
+
| \`anime.info <ID、序号或关键词>\` | 番剧详情 | 简介、状态、话数、评分与逐集进度 |
|
|
41
|
+
| \`anime.sub <ID>\` | 番剧订阅 | 使用 Bangumi 条目 ID |
|
|
42
|
+
| \`anime.remove <ID 或序号>\` | 退订 | 也接受订阅列表中的序号 |
|
|
43
|
+
| \`anime.list\` | 订阅列表 | 本群已订阅作品 |
|
|
44
|
+
| \`anime.clear\` | 清空订阅 | 删除本群全部订阅 |
|
|
45
|
+
| \`anime.next [天数]\` | 追番计划 | 未来 1 至 31 天的排期 |
|
|
46
|
+
| \`anime.on / anime.off [类型]\` | 开启推送 / 关闭推送 | 可只开关某一类推送 |
|
|
47
|
+
| \`anime.status\` | 推送状态 | 查看本群推送设置 |
|
|
48
|
+
| \`anime.push <类型>\` | 立即推送 | 手动发送一次 |
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
推送类型:\`daily\`、\`night\`、\`weekly\`、\`season\`,发送时间在控制台配置。
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
每日、深夜与本周只显示仍在播出的作品;本季表收录该季首播的全部 TV / WEB 动画。
|
|
53
53
|
|
|
54
|
-
\`
|
|
54
|
+
卡片上的 \`ID:xxx\` 可直接用于订阅;\`anime.info\` 也支持搜索结果序号或关键词。
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
取不到封面或评分时,可安装并启用 **[proxy-agent](/market/?keyword=proxy-agent)** 配置代理。
|
|
57
57
|
`;
|
|
58
58
|
const logger = new koishi_1.Logger(constants_1.PLUGIN_NAME);
|
|
59
59
|
function apply(ctx, rawConfig) {
|
|
@@ -94,7 +94,7 @@ function apply(ctx, rawConfig) {
|
|
|
94
94
|
if (config.advanced.debug)
|
|
95
95
|
logger.info('[lifecycle] 调试日志已开启,logger 级别已提到 debug');
|
|
96
96
|
// 出网客户端:Bangumi 接口与图床在国内无法直连,代理在这里统一生效
|
|
97
|
-
const http = new network_1.HttpClient(ctx, logger, config.advanced.retries);
|
|
97
|
+
const http = new network_1.HttpClient(ctx, logger, config.advanced.retries, config.advanced.requestTimeout * 1000);
|
|
98
98
|
// bangumi-data 索引层:作品清单、中文译名、Bangumi 条目 ID 与周期时刻都来自这里
|
|
99
99
|
const index = new bangumi_data_1.BangumiDataIndex(ctx, logger, http);
|
|
100
100
|
// AniList 播出状态:判断「这部番是否还在播」的权威依据
|
|
@@ -107,12 +107,13 @@ function apply(ctx, rawConfig) {
|
|
|
107
107
|
// 立刻开始载入并与插件启动并行:指令与推送在构建前会 await 它,不会出现「索引还没好」的空窗
|
|
108
108
|
const indexReady = index.ensure();
|
|
109
109
|
const localizeReady = digest.localizer.load();
|
|
110
|
+
const verdictReady = digest.verdicts.load();
|
|
110
111
|
const airingReady = airing.ensure();
|
|
111
112
|
// 免去「未处理的 Promise 拒绝」告警,真实错误在 ready 与构建路径里各自上报
|
|
112
|
-
Promise.all([indexReady, localizeReady, airingReady]).catch(() => undefined);
|
|
113
|
+
Promise.all([indexReady, localizeReady, verdictReady, airingReady]).catch(() => undefined);
|
|
113
114
|
const dispatcher = new dispatch_1.Dispatcher(ctx, config, logger, (payload) => renderer.render((0, image_1.toRenderPayload)(payload, (0, constants_1.getMessages)(config.locale))));
|
|
114
115
|
const scheduler = new scheduler_1.Scheduler(ctx, config, logger, digest, dispatcher, guard, async () => {
|
|
115
|
-
await digest.localizer.save();
|
|
116
|
+
await Promise.all([digest.localizer.save(), digest.verdicts.save()]);
|
|
116
117
|
// 顺手把已完结的订阅清掉;`pruneFinishedSubscriptions` 自己按天去重
|
|
117
118
|
await digest.pruneFinishedSubscriptions().catch((error) => {
|
|
118
119
|
logger.debug('[lifecycle] 清理已完结订阅失败: %s', (0, utils_1.errorMessage)(error));
|
|
@@ -123,7 +124,7 @@ function apply(ctx, rawConfig) {
|
|
|
123
124
|
ctx.on('ready', async () => {
|
|
124
125
|
try {
|
|
125
126
|
renderer.init();
|
|
126
|
-
await Promise.all([localizeReady, indexReady]);
|
|
127
|
+
await Promise.all([localizeReady, indexReady, verdictReady]);
|
|
127
128
|
const anyPushEnabled = config.push.dailyEnabled
|
|
128
129
|
|| config.push.nightEnabled
|
|
129
130
|
|| config.push.weeklyEnabled
|
|
@@ -142,9 +143,14 @@ function apply(ctx, rawConfig) {
|
|
|
142
143
|
});
|
|
143
144
|
ctx.on('dispose', async () => {
|
|
144
145
|
scheduler.stop();
|
|
145
|
-
await
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
await Promise.all([
|
|
147
|
+
digest.localizer.save().catch((error) => {
|
|
148
|
+
logger.debug('[lifecycle] 保存本地化缓存失败: %s', (0, utils_1.errorMessage)(error));
|
|
149
|
+
}),
|
|
150
|
+
digest.verdicts.save().catch((error) => {
|
|
151
|
+
logger.debug('[lifecycle] 保存判定缓存失败: %s', (0, utils_1.errorMessage)(error));
|
|
152
|
+
}),
|
|
153
|
+
]);
|
|
148
154
|
});
|
|
149
155
|
}
|
|
150
156
|
function registerCommands(ctx, deps) {
|
package/lib/render/covers.js
CHANGED
|
@@ -325,7 +325,7 @@ class CoverStore {
|
|
|
325
325
|
try {
|
|
326
326
|
const stat = await fs_1.promises.stat(path);
|
|
327
327
|
const ttl = this.cacheDays * 24 * 60 * 60 * 1000;
|
|
328
|
-
if (Date.now() - stat.mtimeMs >
|
|
328
|
+
if (Date.now() - stat.mtimeMs > ttl)
|
|
329
329
|
return null;
|
|
330
330
|
return await fs_1.promises.readFile(path);
|
|
331
331
|
}
|
|
@@ -360,7 +360,7 @@ class CoverStore {
|
|
|
360
360
|
if (!this.enabled)
|
|
361
361
|
return;
|
|
362
362
|
try {
|
|
363
|
-
const ttl =
|
|
363
|
+
const ttl = this.cacheDays * 24 * 60 * 60 * 1000;
|
|
364
364
|
const files = [];
|
|
365
365
|
const buckets = await fs_1.promises.readdir(this.cacheRoot, { withFileTypes: true });
|
|
366
366
|
for (const bucket of buckets) {
|
package/lib/render/fonts.js
CHANGED
|
@@ -27,15 +27,27 @@ function registerFonts(requestedFamily, logger) {
|
|
|
27
27
|
if (initialized)
|
|
28
28
|
return;
|
|
29
29
|
initialized = true;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
const requested = requestedFamily?.trim() ?? '';
|
|
31
|
+
const custom = requested !== '' && requested !== constants_1.DEFAULT_FONT_FAMILY && canvas_1.GlobalFonts.has(requested);
|
|
32
|
+
if (custom) {
|
|
33
|
+
regularFamily = requested;
|
|
34
|
+
// 系统字体通常不提供独立的“Bold”族名,直接由 canvas 选择粗体字重
|
|
35
|
+
boldFamily = canvas_1.GlobalFonts.has(`${requested} Bold`) ? `${requested} Bold` : requested;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
else {
|
|
38
|
+
regularFamily = constants_1.DEFAULT_FONT_FAMILY;
|
|
39
|
+
if (requested !== '' && requested !== constants_1.DEFAULT_FONT_FAMILY) {
|
|
40
|
+
logger.warn('[render] 未找到字体 %s,改用自动选择的中文字体', requested);
|
|
41
|
+
}
|
|
42
|
+
if (!registerFirst(constants_1.FONT_CANDIDATES, regularFamily)) {
|
|
43
|
+
logger.warn('[render] 未找到可用的中文字体,图片中的中文会显示为方块。'
|
|
44
|
+
+ '请安装 Noto Sans CJK,或确认系统字体目录中存在 msyh.ttc / simhei.ttf');
|
|
45
|
+
}
|
|
46
|
+
boldFamily = `${regularFamily} Bold`;
|
|
47
|
+
if (!registerFirst(constants_1.BOLD_FONT_CANDIDATES, boldFamily)) {
|
|
48
|
+
boldFamily = regularFamily;
|
|
49
|
+
logger.debug('[render] 未找到独立的粗体字体,粗体将由常规字体合成');
|
|
50
|
+
}
|
|
39
51
|
}
|
|
40
52
|
const fallbacks = registerFallbacks();
|
|
41
53
|
debugLogFallbacks(fallbacks, logger);
|
package/lib/services/digest.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { Config } from '../config';
|
|
|
3
3
|
import type { AnimeChannel, AnimeSubscription, Digest, DigestItem, DigestKind } from '../types';
|
|
4
4
|
import type { AiringStatusService } from './airing';
|
|
5
5
|
import { Localizer } from './localizer';
|
|
6
|
+
import { VerdictCache } from './verdicts';
|
|
6
7
|
import type { HttpClient } from './network';
|
|
7
8
|
import { BangumiDataIndex } from '../data/bangumi-data';
|
|
8
9
|
/**
|
|
@@ -16,6 +17,8 @@ export declare class DigestService {
|
|
|
16
17
|
/** AniList 播出状态查询;未注入时退化为「按 Bangumi 逐集档期判断」 */
|
|
17
18
|
private airing?;
|
|
18
19
|
readonly localizer: Localizer;
|
|
20
|
+
/** 「不采信 / 已剔除」的持久化判定,避免每次构建重复请求与判断 */
|
|
21
|
+
readonly verdicts: VerdictCache;
|
|
19
22
|
/** 已构建结果的短缓存,见 `shared()` */
|
|
20
23
|
private readonly recentBuilds;
|
|
21
24
|
/** 同一份内容正被构建时,后来的调用直接等它,不重复构建 */
|
|
@@ -76,6 +79,11 @@ export declare class DigestService {
|
|
|
76
79
|
* 3. `dropFinishedByEpisodeDates`(Bangumi 逐集档期的末話日期,需 `/v0/subjects` + `/v0/episodes`)
|
|
77
80
|
* 顺序很重要:1、2 不新增请求,先把大部分候选挡掉,3 于是只为**幸存者**付出代价。
|
|
78
81
|
*/
|
|
82
|
+
/**
|
|
83
|
+
* 闸门 0:上次构建已经得出「这部已完结 / 这条记录不可信」的结论,直接复用,不再请求
|
|
84
|
+
* AniList,也不再为它取 Bangumi 逐集档期。只影响按播出时刻列作品的表,本季表不走这里。
|
|
85
|
+
*/
|
|
86
|
+
private dropCachedVerdicts;
|
|
79
87
|
/**
|
|
80
88
|
* 闸门 1:只看本地索引就能判定「已播完」,**不产生任何请求**。依据是 bangumi-data 的 `end`
|
|
81
89
|
* 与「近期开播且后续仍有排期」(当季条目 `end` 几乎为空,靠这条兜住)。
|
|
@@ -97,6 +105,8 @@ export declare class DigestService {
|
|
|
97
105
|
* @param fromMs 以哪个时刻为准:出表闸门用该场的播出时刻,订阅清理用当前时刻。
|
|
98
106
|
*/
|
|
99
107
|
private aniListFinished;
|
|
108
|
+
/** 已确认完结时,下一场从哪个时刻之后可以直接剔除(用于判定缓存) */
|
|
109
|
+
private aniListDropAfterMs;
|
|
100
110
|
/**
|
|
101
111
|
* 这条 AniList 记录与 `base` 是不是同一季。**只用于「是否已播完」,不用于排期**(`status`
|
|
102
112
|
* 一旦采信就会把作品从各表里剔除)。取逐話时刻时故意不做这个校验,见 `applyAiringSchedule`。
|