From a06ab0aec685ca21c78a94b00b08e619c504169d Mon Sep 17 00:00:00 2001 From: coomdev Date: Wed, 12 Jan 2022 04:21:53 +0100 Subject: [PATCH] Accidentally broke webm embedding --- src/webm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webm.ts b/src/webm.ts index 482ce78..182e27d 100644 --- a/src/webm.ts +++ b/src/webm.ts @@ -3,7 +3,7 @@ import * as ebml from "ts-ebml"; import type { ImageProcessor } from "./main"; // unused, but will in case 4chan does file sig checks -//const password = Buffer.from("NOA"); +const password = Buffer.from("NOA"); const xor = (a: Buffer, p: Buffer) => { let n = 0; @@ -142,5 +142,6 @@ const has_embed = (webm: Buffer) => { export default { extract, has_embed, + inject, match: fn => !!fn.match(/\.webm$/) } as ImageProcessor;