mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-09 20:25:14 +02:00
Update voe.sx to catch every redirect url
This commit is contained in:
parent
7067aaf4a0
commit
8852318483
@ -275,11 +275,22 @@ export const Vidoza: Match = {
|
|||||||
export const Voe: Match = {
|
export const Voe: Match = {
|
||||||
name: 'Voe',
|
name: 'Voe',
|
||||||
id: 'voe',
|
id: 'voe',
|
||||||
domains: ['voe.sx', 'maxfinishseveral.com'],
|
domains: ['voe.sx'],
|
||||||
regex: [/(?<='hls':\s*')\S*(?=')/gm],
|
regex: [
|
||||||
|
// voe.sx
|
||||||
|
/(?<=window\.location\.href\s=\s')\S*(?=')/gm,
|
||||||
|
// whatever site voe.sx redirects to
|
||||||
|
/(?<='hls':\s*')\S*(?=')/gm
|
||||||
|
],
|
||||||
|
|
||||||
match: async (match: RegExpMatchArray) => {
|
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]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user