mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-12-16 16:50:44 +01:00
18 lines
440 B
TypeScript
18 lines
440 B
TypeScript
import { HostMatchType, type Host } from '@/lib/host';
|
|
import { unpack } from '@/utils/content';
|
|
|
|
export default {
|
|
name: 'Kwik',
|
|
id: 'kwik',
|
|
domains: ['kwik.cx'],
|
|
regex: [/eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms],
|
|
|
|
match: async function (match: RegExpMatchArray) {
|
|
const unpacked = await unpack(match[0]);
|
|
return {
|
|
type: HostMatchType.HLS,
|
|
url: unpacked.match(/(?<=source=').*(?=')/)![0]
|
|
};
|
|
}
|
|
} satisfies Host;
|