feat: error message in case its not configured

This commit is contained in:
Goldy
2024-11-16 00:35:18 +01:00
parent 10318deceb
commit c572274fc9
+11
View File
@@ -38,6 +38,17 @@ streams = APIRouter()
@streams.get("/stream/{type}/{id}.json")
async def stream_noconfig(request: Request, type: str, id: str):
return {
"streams": [
{
"name": "[⚠️] Comet",
"description": f"{request.url.scheme}://{request.url.netloc}/configure",
"url": "https://comet.fast",
}
]
}
@streams.get("/{b64config}/stream/{type}/{id}.json")
async def stream(request: Request, b64config: str, type: str, id: str):
config = config_check(b64config)