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