From 2a22eddcea5f37bea82590c75cc7741c26cd6561 Mon Sep 17 00:00:00 2001 From: himanshu8443 Date: Fri, 4 Jul 2025 22:46:54 +0530 Subject: [PATCH] fix: simplify link construction in getStream function --- dist/netflixMirror/stream.js | 2 +- providers/netflixMirror/stream.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/netflixMirror/stream.js b/dist/netflixMirror/stream.js index 271a25c..260afa6 100644 --- a/dist/netflixMirror/stream.js +++ b/dist/netflixMirror/stream.js @@ -29,7 +29,7 @@ const getStream = (_a) => __awaiter(void 0, [_a], void 0, function* ({ link: id, var _a; streamLinks.push({ server: source.label, - link: (_a = (baseUrl + source.file)) === null || _a === void 0 ? void 0 : _a.replace(":su", ":ni"), + link: (_a = source.file) === null || _a === void 0 ? void 0 : _a.replace(":su", ":ni"), type: "m3u8", headers: { Referer: baseUrl, diff --git a/providers/netflixMirror/stream.ts b/providers/netflixMirror/stream.ts index fc9c507..1b0b0d7 100644 --- a/providers/netflixMirror/stream.ts +++ b/providers/netflixMirror/stream.ts @@ -26,7 +26,7 @@ export const getStream = async ({ data?.sources.forEach((source: any) => { streamLinks.push({ server: source.label, - link: (baseUrl + source.file)?.replace(":su", ":ni"), + link: source.file?.replace(":su", ":ni"), type: "m3u8", headers: { Referer: baseUrl,