mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
faster superstream url
This commit is contained in:
parent
072b2d134b
commit
1524a3af39
1 changed files with 5 additions and 1 deletions
|
@ -248,13 +248,17 @@ registerProvider({
|
|||
const mappedCaptions = subtitleRes.list
|
||||
.map(convertSubtitles)
|
||||
.filter(Boolean);
|
||||
|
||||
const fasterUrl = new URL(hdQuality.path);
|
||||
fasterUrl.host = "mp4.shegu.net"; // this domain is faster
|
||||
|
||||
return {
|
||||
embeds: [],
|
||||
stream: {
|
||||
quality: qualityMap[
|
||||
hdQuality.quality as QualityInMap
|
||||
] as MWStreamQuality,
|
||||
streamUrl: hdQuality.path,
|
||||
streamUrl: fasterUrl.toString(),
|
||||
type: MWStreamType.MP4,
|
||||
captions: mappedCaptions,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue