Remove faster cdn, as its broken

This commit is contained in:
mrjvs 2023-08-16 19:26:29 +02:00
parent efb9a7a076
commit 28f253c542
1 changed files with 2 additions and 8 deletions

View File

@ -18,12 +18,6 @@ import { compareTitle } from "@/utils/titleMatch";
const nanoid = customAlphabet("0123456789abcdef", 32);
function makeFasterUrl(url: string) {
const fasterUrl = new URL(url);
fasterUrl.host = "mp4.shegu.net"; // this domain is faster
return fasterUrl.toString();
}
const qualityMap = {
"360p": MWStreamQuality.Q360P,
"480p": MWStreamQuality.Q480P,
@ -205,7 +199,7 @@ registerProvider({
return {
embeds: [],
stream: {
streamUrl: makeFasterUrl(hdQuality.path),
streamUrl: hdQuality.path,
quality: qualityMap[hdQuality.quality as QualityInMap],
type: MWStreamType.MP4,
captions: mappedCaptions,
@ -261,7 +255,7 @@ registerProvider({
quality: qualityMap[
hdQuality.quality as QualityInMap
] as MWStreamQuality,
streamUrl: makeFasterUrl(hdQuality.path),
streamUrl: hdQuality.path,
type: MWStreamType.MP4,
captions: mappedCaptions,
},