From 28f253c5420495f8a43386f29c72d4915bfe2dce Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 16 Aug 2023 19:26:29 +0200 Subject: [PATCH 1/2] Remove faster cdn, as its broken --- src/backend/providers/superstream/index.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/backend/providers/superstream/index.ts b/src/backend/providers/superstream/index.ts index 883d1ad5..7111473e 100644 --- a/src/backend/providers/superstream/index.ts +++ b/src/backend/providers/superstream/index.ts @@ -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, }, From 8c105e78b5bde54515b28ce42d1554ba2bd763de Mon Sep 17 00:00:00 2001 From: mrjvs Date: Wed, 16 Aug 2023 19:26:43 +0200 Subject: [PATCH 2/2] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 05a36350..40cb440c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "movie-web", - "version": "3.2.0", + "version": "3.2.1", "private": true, "homepage": "https://movie-web.app", "dependencies": {