256 kbps default
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user