From d56672d90ff167ae2d8c52f2cba567afeaeebc07 Mon Sep 17 00:00:00 2001 From: bytedream Date: Fri, 30 Sep 2022 16:02:00 +0200 Subject: [PATCH] Fix mp4upload --- src/match/matches.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/match/matches.ts b/src/match/matches.ts index 4ee1c36..ffe1cc5 100644 --- a/src/match/matches.ts +++ b/src/match/matches.ts @@ -68,7 +68,7 @@ class Evoload implements Match { class Filemoon implements Match { name = 'Filemoon' id = 'filemoon' - reliability = Reliability.NORMAL + reliability = Reliability.HIGH domains = [ 'filemoon.sx' ] @@ -118,7 +118,8 @@ class Mp4Upload implements Match { regex = new RegExp(/(?<=\|)\w{2,}/gm) async match(match: RegExpMatchArray): Promise { - return `https://${match[34]}.mp4upload.com:${match[89]}/d/${match[88]}/video.mp4` + let id = match.slice().reduce((a, b) => a.length >= b.length ? a : b) + return `https://www4.mp4upload.com:282/d/${id}/video.mp4` } }