Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't require preprocessing for mov files
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 8224755 commit a02dc67
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions functions/api/reports/submit.ts
Expand Up @@ -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");
}
Expand Down

0 comments on commit a02dc67

Please sign in to comment.