mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-13 09:05:08 +01:00
faster superstream url
This commit is contained in:
parent
072b2d134b
commit
1524a3af39
@ -248,13 +248,17 @@ registerProvider({
|
|||||||
const mappedCaptions = subtitleRes.list
|
const mappedCaptions = subtitleRes.list
|
||||||
.map(convertSubtitles)
|
.map(convertSubtitles)
|
||||||
.filter(Boolean);
|
.filter(Boolean);
|
||||||
|
|
||||||
|
const fasterUrl = new URL(hdQuality.path);
|
||||||
|
fasterUrl.host = "mp4.shegu.net"; // this domain is faster
|
||||||
|
|
||||||
return {
|
return {
|
||||||
embeds: [],
|
embeds: [],
|
||||||
stream: {
|
stream: {
|
||||||
quality: qualityMap[
|
quality: qualityMap[
|
||||||
hdQuality.quality as QualityInMap
|
hdQuality.quality as QualityInMap
|
||||||
] as MWStreamQuality,
|
] as MWStreamQuality,
|
||||||
streamUrl: hdQuality.path,
|
streamUrl: fasterUrl.toString(),
|
||||||
type: MWStreamType.MP4,
|
type: MWStreamType.MP4,
|
||||||
captions: mappedCaptions,
|
captions: mappedCaptions,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user