256 kbps default

This commit is contained in:
2026-01-21 18:33:54 +00:00
parent 1ac08fd656
commit 6edbf55756

View File

@@ -76,7 +76,7 @@ async def register_endpoint(req: Request):
# check if user exists.
if await fetch_user_info(body["email"],"email") is not None:
raise HTTPException(403, "User already exists")
raise HTTPException(400, "User already exists")
await create_user(body["first_name"], body["last_name"], body["email"], body["password"])
return PlainTextResponse("User registered")
@@ -123,7 +123,7 @@ async def begin_conversion(req: Request):
video_url = body.get("video_url")
user_id = body.get("user_id")
quality = body.get("kbps")
quality = body.get("kbps", 256)
if (video_url is None): raise HTTPException(400, "Please provide an URL on body")
if (user_id is None): raise HTTPException(401, "No User ID")