Update app.py
Browse files
app.py
CHANGED
@@ -294,12 +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 |
-
|
298 |
if format_id and format_url:
|
299 |
result.append({
|
300 |
"url": format_url,
|
301 |
"format_id": format_id,
|
302 |
-
"cookies":
|
303 |
})
|
304 |
title = json_response.get('title')
|
305 |
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 |
+
p_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": p_cookies
|
303 |
})
|
304 |
title = json_response.get('title')
|
305 |
return result
|