pixivflow 2.21.0 → 2.22.0
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/dist/package.json
CHANGED
|
@@ -271,7 +271,7 @@ export type TerminalReasonCode =
|
|
|
271
271
|
/** Every candidate the scan saw was already delivered/pending for this target. */
|
|
272
272
|
| 'duplicate_exhausted'
|
|
273
273
|
/** Candidates existed but none passed the target's own filters. */
|
|
274
|
-
| 'filter_exhausted' | 'download_timeout' | 'download_failed' | 'rate_limited' | 'auth_failed' | 'remote_http_error' | 'delivery_failed' | 'telegram_failed' | 'network_error' | 'execution_timeout' | 'configuration_error' | 'internal_error';
|
|
274
|
+
| 'filter_exhausted' | 'download_timeout' | 'download_failed' | 'metadata_failed' | 'rate_limited' | 'auth_failed' | 'remote_http_error' | 'delivery_failed' | 'telepost_rejected' | 'telegram_failed' | 'network_error' | 'execution_timeout' | 'configuration_error' | 'internal_error';
|
|
275
275
|
export interface TerminalReason {
|
|
276
276
|
code: TerminalReasonCode;
|
|
277
277
|
/** Business-language message an operator/reviewer reads directly. */
|
|
@@ -233,10 +233,12 @@ exports.TERMINAL_REASON_MESSAGES = {
|
|
|
233
233
|
filter_exhausted: '没有符合筛选条件的新作品',
|
|
234
234
|
download_timeout: '图片下载超时',
|
|
235
235
|
download_failed: '图片下载失败',
|
|
236
|
+
metadata_failed: '作品信息获取失败',
|
|
236
237
|
rate_limited: 'Pixiv 请求频率受限',
|
|
237
238
|
auth_failed: 'Pixiv 登录已失效,需要重新登录',
|
|
238
239
|
remote_http_error: 'Pixiv 服务器返回错误',
|
|
239
240
|
delivery_failed: '投稿投递失败',
|
|
241
|
+
telepost_rejected: '投稿被接收端拒绝',
|
|
240
242
|
telegram_failed: 'Telegram 发送失败',
|
|
241
243
|
network_error: '网络异常',
|
|
242
244
|
execution_timeout: '执行超时',
|
|
@@ -327,6 +329,18 @@ function classifyFailedReason(message, scan) {
|
|
|
327
329
|
if (/not configured|missing (?:config|configuration|setting)|invalid config/i.test(text)) {
|
|
328
330
|
return { code: 'configuration_error', message: exports.TERMINAL_REASON_MESSAGES.configuration_error };
|
|
329
331
|
}
|
|
332
|
+
// A candidate's metadata could not be gathered/parsed: this is its own root
|
|
333
|
+
// cause (config is fine; the upstream work was unreadable), so it must not
|
|
334
|
+
// fall through to internal_error or configuration_error.
|
|
335
|
+
if (/\bmetadata\b.{0,60}\b(?:fail|error|unable|invalid|parse|serialize|gather)\b|failed to (?:gather|parse|fetch|load|save)\b.{0,40}\bmetadata\b/i.test(text)) {
|
|
336
|
+
return { code: 'metadata_failed', message: exports.TERMINAL_REASON_MESSAGES.metadata_failed };
|
|
337
|
+
}
|
|
338
|
+
// TelePost (or any theme/review submission endpoint) explicitly rejected the
|
|
339
|
+
// work with a client-side / payload verdict. This is not a delivery outage
|
|
340
|
+
// (5xx/unreachable — handled above) nor a generic delivery failure.
|
|
341
|
+
if (/\btele[ _-]?post\b[^.\n]{0,60}\b(?:reject|invalid|4\d\d)\b/i.test(text)) {
|
|
342
|
+
return { code: 'telepost_rejected', message: exports.TERMINAL_REASON_MESSAGES.telepost_rejected };
|
|
343
|
+
}
|
|
330
344
|
if (/delivery|submit(?:t?ed)?|publish|post|outbox/i.test(text)) {
|
|
331
345
|
return { code: 'delivery_failed', message: exports.TERMINAL_REASON_MESSAGES.delivery_failed };
|
|
332
346
|
}
|
package/dist/version.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BUILD = void 0;
|
|
4
4
|
// GENERATED by scripts/write-version.js — do not edit manually.
|
|
5
|
-
exports.BUILD = { version: '2.
|
|
5
|
+
exports.BUILD = { version: '2.22.0', commit: 'e6cd6211dba7' };
|
|
6
6
|
//# sourceMappingURL=version.js.map
|
package/dist/webui/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixivflow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "🎨 Pixiv 下载、筛选与自动收集工具 - 批量下载插画和小说、按标签/热度/日期筛选、定时任务与可靠 HTTP 交付 | Pixiv downloader and automation toolkit with filtering, scheduling and reliable HTTP delivery",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|