Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -335,10 +335,10 @@ def download_video(url, progress_bar, status_text):
|
|
335 |
'cookiefile': 'youtube.com_cookies.txt',
|
336 |
'user_agent': random.choice(user_agents),
|
337 |
'referer': 'https://www.youtube.com/',
|
338 |
-
'http_chunk_size': random.randint(
|
339 |
-
'retries':
|
340 |
'sleep_interval': 3,
|
341 |
-
'max_sleep_interval':
|
342 |
'headers': {
|
343 |
'Accept-Language': 'en-US,en;q=0.9',
|
344 |
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
|
|
335 |
'cookiefile': 'youtube.com_cookies.txt',
|
336 |
'user_agent': random.choice(user_agents),
|
337 |
'referer': 'https://www.youtube.com/',
|
338 |
+
'http_chunk_size': random.randint(100000000, 150000000),
|
339 |
+
'retries': 1, # μ¬μλ νμ
|
340 |
'sleep_interval': 3,
|
341 |
+
'max_sleep_interval': 10,
|
342 |
'headers': {
|
343 |
'Accept-Language': 'en-US,en;q=0.9',
|
344 |
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|