fix: silently skip /denied/ and other non-hosted download prefixes

These are valid entries we've been asked not to host — no need to
log warnings for them.

claude-opus-4-6@MacFiver
This commit is contained in:
2026-02-17 16:17:43 +00:00
parent 9efedb5f2e
commit 6b91fde972

View File

@@ -336,10 +336,13 @@ async function main() {
try {
const localZip = toLocalPath(fileLink);
if (!localZip) {
logWarn(` [${id}] Unsupported file_link prefix: ${fileLink}`);
errors++;
// /denied/ and other non-hosted prefixes — skip silently
skipped++;
processed++;
currentState.lastProcessedId = id;
if (processed % 500 === 0) {
await checkpoint();
}
continue;
}