From 13f69f0574b9b4cb0ad0b131c2008bd3fc934f37 Mon Sep 17 00:00:00 2001 From: Deven Perez Date: Sat, 16 Aug 2025 21:31:48 -0400 Subject: [PATCH] Basic m3u passthrough --- src/app/iptv/sdlive-playlist.m3u8/route.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/app/iptv/sdlive-playlist.m3u8/route.ts diff --git a/src/app/iptv/sdlive-playlist.m3u8/route.ts b/src/app/iptv/sdlive-playlist.m3u8/route.ts new file mode 100644 index 0000000..db182ba --- /dev/null +++ b/src/app/iptv/sdlive-playlist.m3u8/route.ts @@ -0,0 +1,18 @@ +export async function GET(request: Request, res: Response) { + const response = await fetch('https://sdlive.d-ho.me/playlist.m3u8') + + if (!response.ok) { + return new Response('Failed to fetch playlist', { status: 500 }) + } + + const playlist = await response.text() + + + + return new Response(playlist, { + headers: { + 'Content-Disposition': 'attachment; filename="sdlive-playlist.m3u8"', + 'Content-Type': 'application/vnd.apple.mpegurl', + } + }) +} \ No newline at end of file