Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
novo player.
Browse files Browse the repository at this point in the history
  • Loading branch information
uesleibros committed Sep 2, 2024
1 parent e5d2175 commit 7f1c523
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/app/api/imagens/anroll/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ export async function GET(request) {
cache: "no-store"
});

console.log(res.headers);

const imageBuffer = await res.arrayBuffer();
const contentLength = imageBuffer.byteLength;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function GET(request) {
return `${request.headers.get("x-forwarded-proto") || "http"}://${request.headers.get("host")}/api/imagens/anroll?q=${encodedUrl}`;
});

return new Response(updatedM3U8Text, {
return new Response(Buffer.from(updatedM3U8Text, "utf8"), {
headers: {
"Content-Type": "application/vnd.apple.mpegurl",
"Content-Disposition": `attachment; filename="${slug}-${episodio}.m3u8"`,
Expand Down

0 comments on commit 7f1c523

Please sign in to comment.