Update app.py
Browse files
app.py
CHANGED
|
@@ -340,8 +340,8 @@ def extract_video_info(video_url: str) -> str:
|
|
| 340 |
@app.post("/test")
|
| 341 |
async def test_download(request: Request):
|
| 342 |
data = request.json()
|
| 343 |
-
video_url = data.get('url')
|
| 344 |
-
response =
|
| 345 |
return response
|
| 346 |
|
| 347 |
|
|
|
|
| 340 |
@app.post("/test")
|
| 341 |
async def test_download(request: Request):
|
| 342 |
data = request.json()
|
| 343 |
+
video_url = await data.get('url')
|
| 344 |
+
response = extract_video_info(video_url)
|
| 345 |
return response
|
| 346 |
|
| 347 |
|