Don't require preprocessing for mov files
This commit is contained in:
parent
8224755380
commit
a02dc67172
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user