From 88523184831c68f76a3652220005d4ca58f22753 Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 3 Apr 2025 22:55:24 +0200 Subject: [PATCH] Update voe.sx to catch every redirect url --- src/lib/match.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/lib/match.ts b/src/lib/match.ts index 9a81a44..f318403 100644 --- a/src/lib/match.ts +++ b/src/lib/match.ts @@ -275,11 +275,22 @@ export const Vidoza: Match = { export const Voe: Match = { name: 'Voe', id: 'voe', - domains: ['voe.sx', 'maxfinishseveral.com'], - regex: [/(?<='hls':\s*')\S*(?=')/gm], + domains: ['voe.sx'], + regex: [ + // voe.sx + /(?<=window\.location\.href\s=\s')\S*(?=')/gm, + // whatever site voe.sx redirects to + /(?<='hls':\s*')\S*(?=')/gm + ], match: async (match: RegExpMatchArray) => { - return atob(match[0]); + if (window.location.host === 'voe.sx') { + const redirectUrl = new URL(match[0]); + await TmpHost.set(redirectUrl.host, Voe); + return null; + } else { + return atob(match[0]); + } } };