Spaces:
Paused
Paused
add more logs
Browse files- app/utils.py +2 -0
app/utils.py
CHANGED
|
@@ -10,6 +10,8 @@ def download_video(url: str, cookie: str = None, video_id: str = "video") -> str
|
|
| 10 |
"outtmpl": output_path,
|
| 11 |
"quiet": False,
|
| 12 |
"noplaylist": True,
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
cookie_file = None
|
|
|
|
| 10 |
"outtmpl": output_path,
|
| 11 |
"quiet": False,
|
| 12 |
"noplaylist": True,
|
| 13 |
+
"no_cache_dir": True,
|
| 14 |
+
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
| 15 |
}
|
| 16 |
|
| 17 |
cookie_file = None
|