admin commited on
Commit ·
f73f756
1
Parent(s): 89ed74e
rm timeout for dld
Browse files
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def download_file(url, video_id, cache_dir="./__pycache__"):
|
|
| 26 |
|
| 27 |
os.makedirs(cache_dir)
|
| 28 |
local_file = f"{cache_dir}/{video_id}.mp4"
|
| 29 |
-
response = requests.get(url, stream=True
|
| 30 |
if response.status_code == 200:
|
| 31 |
with open(local_file, "wb") as file:
|
| 32 |
for chunk in response.iter_content(chunk_size=8192):
|
|
|
|
| 26 |
|
| 27 |
os.makedirs(cache_dir)
|
| 28 |
local_file = f"{cache_dir}/{video_id}.mp4"
|
| 29 |
+
response = requests.get(url, stream=True)
|
| 30 |
if response.status_code == 200:
|
| 31 |
with open(local_file, "wb") as file:
|
| 32 |
for chunk in response.iter_content(chunk_size=8192):
|