Update app.py
Browse files
app.py
CHANGED
@@ -294,10 +294,12 @@ async def extract_video_info(video_url: str) -> str:
|
|
294 |
for format_item in json_response['formats']:
|
295 |
format_url = format_item.get('url')
|
296 |
format_id = format_item.get('format_id')
|
|
|
297 |
if format_id and format_url:
|
298 |
result.append({
|
299 |
"url": format_url,
|
300 |
-
"format_id": format_id
|
|
|
301 |
})
|
302 |
title = json_response.get('title')
|
303 |
return result
|
|
|
294 |
for format_item in json_response['formats']:
|
295 |
format_url = format_item.get('url')
|
296 |
format_id = format_item.get('format_id')
|
297 |
+
cookies = format_item.get('cookies')
|
298 |
if format_id and format_url:
|
299 |
result.append({
|
300 |
"url": format_url,
|
301 |
+
"format_id": format_id,
|
302 |
+
"cookies": cookies
|
303 |
})
|
304 |
title = json_response.get('title')
|
305 |
return result
|