mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-09 20:25:14 +02:00
Add loadx.ws
This commit is contained in:
parent
416fceba88
commit
c081127d35
@ -106,6 +106,33 @@ export const Kwik: Match = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const LoadX: Match = {
|
||||||
|
name: 'LoadX',
|
||||||
|
id: 'loadx',
|
||||||
|
domains: ['loadx.ws'],
|
||||||
|
regex: [/./gm],
|
||||||
|
|
||||||
|
match: async () => {
|
||||||
|
const postMatch = window.location.href.match(/(?<=\/video\/)\S*(\/.*)?/)!;
|
||||||
|
|
||||||
|
const response = await fetch(
|
||||||
|
`https://${window.location.host}/player/index.php?data=${encodeURIComponent(postMatch[0])}&do=getVideo`,
|
||||||
|
{
|
||||||
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'X-Requested-With': 'XMLHttpRequest'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
const responseJson = await response.json();
|
||||||
|
const videoSource: string = responseJson['videoSource'];
|
||||||
|
|
||||||
|
// extension of extracted url is '.txt', so we have to manually specify that it's a hls
|
||||||
|
return {hls: videoSource.replace('\\/', '/')};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
export const Luluvdo: Match = {
|
export const Luluvdo: Match = {
|
||||||
name: 'Luluvdo',
|
name: 'Luluvdo',
|
||||||
id: 'luluvdo',
|
id: 'luluvdo',
|
||||||
@ -319,6 +346,7 @@ export const matches = {
|
|||||||
[Filemoon.id]: Filemoon,
|
[Filemoon.id]: Filemoon,
|
||||||
[GoodStream.id]: GoodStream,
|
[GoodStream.id]: GoodStream,
|
||||||
[Kwik.id]: Kwik,
|
[Kwik.id]: Kwik,
|
||||||
|
[LoadX.id]: LoadX,
|
||||||
[Luluvdo.id]: Luluvdo,
|
[Luluvdo.id]: Luluvdo,
|
||||||
[Mixdrop.id]: Mixdrop,
|
[Mixdrop.id]: Mixdrop,
|
||||||
[Mp4Upload.id]: Mp4Upload,
|
[Mp4Upload.id]: Mp4Upload,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user