From 7f1c523e86ed6988011af7df6865414d1eea02c8 Mon Sep 17 00:00:00 2001 From: UesleiDev <63914812+uesleibros@users.noreply.github.com> Date: Sun, 1 Sep 2024 21:16:41 -0300 Subject: [PATCH] novo player. --- src/app/api/imagens/anroll/route.js | 2 -- .../api/streaming/anroll/[slug]/[episodio]/media.m3u8/route.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/api/imagens/anroll/route.js b/src/app/api/imagens/anroll/route.js index a8c6755..a09dbb0 100644 --- a/src/app/api/imagens/anroll/route.js +++ b/src/app/api/imagens/anroll/route.js @@ -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; diff --git a/src/app/api/streaming/anroll/[slug]/[episodio]/media.m3u8/route.js b/src/app/api/streaming/anroll/[slug]/[episodio]/media.m3u8/route.js index b43933e..2fd67c3 100644 --- a/src/app/api/streaming/anroll/[slug]/[episodio]/media.m3u8/route.js +++ b/src/app/api/streaming/anroll/[slug]/[episodio]/media.m3u8/route.js @@ -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"`,