Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
Update v4.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
DevanAbinaya committed Sep 23, 2023
1 parent 58eacce commit d757023
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
9 changes: 4 additions & 5 deletions components/videoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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))}`,
};
});

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "moopa",
"version": "4.0.5",
"version": "4.0.6",
"private": true,
"founder": "Factiven",
"scripts": {
Expand Down
10 changes: 7 additions & 3 deletions release.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d757023

Please sign in to comment.