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