Spaces:
Sleeping
Sleeping
Update streamlit_app.py
Browse files- streamlit_app.py +3 -0
streamlit_app.py
CHANGED
|
@@ -116,6 +116,9 @@ def _download_with_yt_dlp(url: str, dst: Path, password: str = "") -> Path:
|
|
| 116 |
"nocheckcertificate": True,
|
| 117 |
"merge_output_format": "mp4",
|
| 118 |
"fragment_retries": 0,
|
|
|
|
|
|
|
|
|
|
| 119 |
}
|
| 120 |
if password:
|
| 121 |
opts["videopassword"] = password
|
|
|
|
| 116 |
"nocheckcertificate": True,
|
| 117 |
"merge_output_format": "mp4",
|
| 118 |
"fragment_retries": 0,
|
| 119 |
+
"force_ipv4": True, # <‑‑ force IPv4
|
| 120 |
+
"retries": 3, # retry a few times on transient errors
|
| 121 |
+
"socket_timeout": 30,
|
| 122 |
}
|
| 123 |
if password:
|
| 124 |
opts["videopassword"] = password
|