Fix streamtape

This commit is contained in:
bytedream 2022-07-19 10:07:21 +02:00
parent e146649bbf
commit dc42220f09

View File

@ -121,10 +121,10 @@ class Streamtape implements Match {
domains = [
'streamtape.com'
]
regex = new RegExp(/\/get_video\S*(?=')/gm)
regex = new RegExp(/id=.*(?=')/gm)
async match(match: RegExpMatchArray): Promise<string> {
return `https://streamtape.com${match[0]}`
return `https://streamtape.com/get_video?${match.reverse()[0]}`
}
}