mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-11 13:15:13 +02:00
Fix mp4upload
This commit is contained in:
parent
a9ea5fe4b2
commit
d56672d90f
@ -68,7 +68,7 @@ class Evoload implements Match {
|
|||||||
class Filemoon implements Match {
|
class Filemoon implements Match {
|
||||||
name = 'Filemoon'
|
name = 'Filemoon'
|
||||||
id = 'filemoon'
|
id = 'filemoon'
|
||||||
reliability = Reliability.NORMAL
|
reliability = Reliability.HIGH
|
||||||
domains = [
|
domains = [
|
||||||
'filemoon.sx'
|
'filemoon.sx'
|
||||||
]
|
]
|
||||||
@ -118,7 +118,8 @@ class Mp4Upload implements Match {
|
|||||||
regex = new RegExp(/(?<=\|)\w{2,}/gm)
|
regex = new RegExp(/(?<=\|)\w{2,}/gm)
|
||||||
|
|
||||||
async match(match: RegExpMatchArray): Promise<string> {
|
async match(match: RegExpMatchArray): Promise<string> {
|
||||||
return `https://${match[34]}.mp4upload.com:${match[89]}/d/${match[88]}/video.mp4`
|
let id = match.slice().reduce((a, b) => a.length >= b.length ? a : b)
|
||||||
|
return `https://www4.mp4upload.com:282/d/${id}/video.mp4`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user