jpjp9292 commited on
Commit
a8d3117
β€’
1 Parent(s): c0c3b4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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(10000000, 15000000),
339
- 'retries': 5, # μž¬μ‹œλ„ 횟수λ₯Ό 5둜 늘림
340
  'sleep_interval': 3,
341
- 'max_sleep_interval': 8,
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',