Youssouf ⚜️
commited on
Commit
·
f187fb8
1
Parent(s):
d17f7f3
fix: remove DNS config and add network retry options
Browse files- Dockerfile +0 -3
- app.py +3 -0
Dockerfile
CHANGED
|
@@ -3,9 +3,6 @@
|
|
| 3 |
|
| 4 |
FROM python:3.12
|
| 5 |
|
| 6 |
-
RUN echo "nameserver 8.8.8.8" >> /etc/resolv.conf && \
|
| 7 |
-
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
|
| 8 |
-
|
| 9 |
RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
RUN useradd -m -u 1000 user
|
|
|
|
| 3 |
|
| 4 |
FROM python:3.12
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
RUN useradd -m -u 1000 user
|
app.py
CHANGED
|
@@ -51,6 +51,9 @@ def download_youtube(url, task_id):
|
|
| 51 |
"no_warnings": True,
|
| 52 |
"extract_flat": "in_playlist",
|
| 53 |
"max_downloads": 50,
|
|
|
|
|
|
|
|
|
|
| 54 |
}
|
| 55 |
|
| 56 |
update_status("analyzing")
|
|
|
|
| 51 |
"no_warnings": True,
|
| 52 |
"extract_flat": "in_playlist",
|
| 53 |
"max_downloads": 50,
|
| 54 |
+
"socket_timeout": 30,
|
| 55 |
+
"retries": 10,
|
| 56 |
+
"fragment_retries": 10,
|
| 57 |
}
|
| 58 |
|
| 59 |
update_status("analyzing")
|