From d757023525985c05a67c4f25522aea8f4c7d0af0 Mon Sep 17 00:00:00 2001 From: Factiven Date: Sat, 23 Sep 2023 15:40:54 +0000 Subject: [PATCH] Update v4.0.6 --- components/videoPlayer.js | 9 ++++----- package-lock.json | 4 ++-- package.json | 2 +- release.md | 10 +++++++--- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/components/videoPlayer.js b/components/videoPlayer.js index a961c1bc..f35f4f08 100644 --- a/components/videoPlayer.js +++ b/components/videoPlayer.js @@ -74,7 +74,7 @@ export default function VideoPlayer({ async function compiler() { try { - const referer = data?.headers?.Referer; + const referer = JSON.stringify(data?.headers); const source = data.sources.map((items) => { const isDefault = provider !== "gogoanime" @@ -85,10 +85,9 @@ export default function VideoPlayer({ return { ...(isDefault && { default: true }), html: items.quality === "default" ? "adaptive" : items.quality, - // url: `https://cors.moopa.live/${items.url}`, - url: `${proxy}?url=${encodeURIComponent(items.url)}${ - referer ? `&referer=${encodeURIComponent(referer)}` : "" - }`, + url: `${proxy}/proxy/m3u8/${encodeURIComponent( + String(items.url) + )}/${encodeURIComponent(String(referer))}`, }; }); diff --git a/package-lock.json b/package-lock.json index 8ed13b32..acbbea4b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "moopa", - "version": "4.0.3", + "version": "4.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "moopa", - "version": "4.0.3", + "version": "4.0.6", "dependencies": { "@apollo/client": "^3.7.3", "@headlessui/react": "^1.7.15", diff --git a/package.json b/package.json index 34b44d31..ada5e1b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moopa", - "version": "4.0.5", + "version": "4.0.6", "private": true, "founder": "Factiven", "scripts": { diff --git a/release.md b/release.md index f45a8366..506ef786 100644 --- a/release.md +++ b/release.md @@ -2,8 +2,12 @@ This document contains a summary of all significant changes made to this release. -## 🎉 Update v4.0.5 +## 🎉 Update v4.0.6 -### Added +### Fixes -- Added characters card to info page +- Video won't play due to outdated code + +### Changed + +- Updated readme for cors usage