From 09f872b11a9957e9f90954951ce0d0e14163e8f9 Mon Sep 17 00:00:00 2001 From: alikia2x Date: Sun, 9 Mar 2025 23:01:10 +0800 Subject: [PATCH] improve: handling of invisible videos in snapshot --- lib/mq/exec/snapshotTick.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mq/exec/snapshotTick.ts b/lib/mq/exec/snapshotTick.ts index 8fdd8d6..11cb518 100644 --- a/lib/mq/exec/snapshotTick.ts +++ b/lib/mq/exec/snapshotTick.ts @@ -107,7 +107,7 @@ export const takeSnapshotForMilestoneVideoWorker = async (job: Job) => { const lastSnapshoted = snapshotedAt; const stat = await insertVideoStats(client, aid, "snapshotMilestoneVideo"); if (typeof stat === "number") { - if (stat === -404 || stat === 62002) { + if (stat === -404 || stat === 62002 || stat == 62012) { await setSnapshotScheduled(aid, true, 6 * 60 * 60); } else { @@ -172,7 +172,7 @@ export const takeSnapshotForVideoWorker = async (job: Job) => { const { aid } = job.data; const stat = await insertVideoStats(client, aid, "getVideoInfo"); if (typeof stat === "number") { - if (stat === -404 || stat === 62002) { + if (stat === -404 || stat === 62002 || stat == 62012) { await setSnapshotScheduled(aid, true, 6 * 60 * 60); } else {