From a02dc6717271d2f11b0296734a275aa18cac08d4 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:35 -0400 Subject: [PATCH] Don't require preprocessing for mov files --- functions/api/reports/submit.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/api/reports/submit.ts b/functions/api/reports/submit.ts index eefb907..5069f79 100644 --- a/functions/api/reports/submit.ts +++ b/functions/api/reports/submit.ts @@ -213,9 +213,11 @@ export async function onRequestPost(context: RequestContext) { const extension = (url.split(".").at(-1) as string).toLowerCase(); if (["mkv", "mov", "wmv"].includes(extension)) { - await context.env.DATA.put(`videoprocessing_${url}.${extension}`, "1", { - expirationTtl: 600, - }); + // These are merely glorified mp4 containers + if (extension !== "mov") + await context.env.DATA.put(`videoprocessing_${url}.${extension}`, "1", { + expirationTtl: 600, + }); url = url.replace(`.${extension}`, ".mp4"); }