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()