From a207c336b07d8a7097e0e0a7c13feae708f58c4e Mon Sep 17 00:00:00 2001 From: bytedream Date: Tue, 19 Jul 2022 11:09:09 +0200 Subject: [PATCH] Add mp4upload support --- src/match/matches.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/match/matches.ts b/src/match/matches.ts index 6cfee58..9dac698 100644 --- a/src/match/matches.ts +++ b/src/match/matches.ts @@ -77,19 +77,20 @@ class Mixdrop implements Match { } } -/*class Mp4Upload implements Match { +class Mp4Upload implements Match { name = 'Mp4Upload' id = 'mp4upload' reliability = Reliability.LOW domains = [ 'mp4upload.com' ] + replace = true regex = new RegExp(/(?<=\|)\w{2,}/gm) async match(match: RegExpMatchArray): Promise { return `https://${match[34]}.mp4upload.com:${match[89]}/d/${match[88]}/video.mp4` } -}*/ +} class Newgrounds implements Match { name = 'Newgrounds' @@ -243,6 +244,7 @@ export const matches = [ new Doodstream(), new Evoload(), new Mixdrop(), + new Mp4Upload(), new Newgrounds(), new Streamtape(), new Streamzz(),