from fastapi import APIRouter, HTTPException from fastapi.responses import HTMLResponse from urllib.parse import quote_plus router = APIRouter(tags=["Direct Player"], prefix="") @router.get("/view") async def view(url: str): if not url: raise HTTPException(status_code=400, detail="url required") html = f"""
""" return HTMLResponse(content=html)