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"`,