mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-09 20:25:14 +02:00
Add vidoza
This commit is contained in:
parent
806320a0de
commit
9d4b52c107
@ -145,25 +145,17 @@ class Vidlox implements Match {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class Vidstream implements Match {
|
class Vidoza implements Match {
|
||||||
name = 'Vidstream'
|
name = 'Vidoza'
|
||||||
id = 'vidstream'
|
id = 'vidoza'
|
||||||
reliability = Reliability.LOW
|
reliability = Reliability.HIGH
|
||||||
domains = [
|
domains = [
|
||||||
'vidstream.pro'
|
'vidoza.net'
|
||||||
]
|
]
|
||||||
regex = new RegExp(/(?<=')\w+(?=';)/gm)
|
regex = new RegExp(/(?<=src:\s?").+?(?=")/gm)
|
||||||
|
|
||||||
async match(match: RegExpMatchArray): Promise<string> {
|
async match(match: RegExpMatchArray): Promise<string> {
|
||||||
const code = window.location.pathname.split('/').slice(-1)[0]
|
return match[0]
|
||||||
const response = await fetch(`https://vidstream.pro/info/${code}?skey=${match[0]}`, {
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
referrer: `https://vidstream.pro/embed/${code}`
|
|
||||||
})
|
|
||||||
const json = await response.json()
|
|
||||||
return json['media']['sources'][0]['file']
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,6 +224,7 @@ export const matches = [
|
|||||||
new Streamzz(),
|
new Streamzz(),
|
||||||
new Upstream(),
|
new Upstream(),
|
||||||
new Vidlox(),
|
new Vidlox(),
|
||||||
|
new Vidoza(),
|
||||||
new Vivo(),
|
new Vivo(),
|
||||||
new Voe(),
|
new Voe(),
|
||||||
new Vupload()
|
new Vupload()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user