From 806320a0de54bdd00930145500b679dc8b9e29e2 Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 16 Jun 2022 22:28:28 +0200 Subject: [PATCH] Fix streamzz and remove vidoza --- src/match/match.ts | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/src/match/match.ts b/src/match/match.ts index ad52d7a..f8a7b28 100644 --- a/src/match/match.ts +++ b/src/match/match.ts @@ -107,12 +107,13 @@ class Streamzz implements Match { id = 'streamzz' reliability = Reliability.NORMAL domains = [ - 'streamzz.to' + 'streamzz.to', + 'streamz.ws' ] - regex = new RegExp(/https?:\/\/get.streamz.tw\/getlink-\w+\.dll/gm) + regex = new RegExp(/(?<=\|)\w{2,}/gm) async match(match: RegExpMatchArray): Promise { - return match[0] + return `https://get.${document.domain.split('.')[0]}.tw/getlink-${match.sort((a, b) => b.length - a.length)[0]}.dll` } } @@ -166,20 +167,6 @@ class Vidstream implements Match { } } -class Vidoza implements Match { - name = 'Vidoza' - id = 'vidoza' - reliability = Reliability.NORMAL - domains = [ - 'vidoza.net' - ] - regex = new RegExp(/(?<=src:(\s*)?")\S*(?=")/gm) - - async match(match: RegExpMatchArray): Promise { - return match[0] - } -} - class Vivo implements Match { name = 'Vivo' id = 'vivo' @@ -245,7 +232,6 @@ export const matches = [ new Streamzz(), new Upstream(), new Vidlox(), - new Vidoza(), new Vivo(), new Voe(), new Vupload()