izuemon commited on
Commit
f655bda
·
verified ·
1 Parent(s): d6fa4f1

Update watcher.py

Browse files
Files changed (1) hide show
  1. watcher.py +9 -1
watcher.py CHANGED
@@ -112,9 +112,17 @@ def select_best_video_and_audio(items):
112
 
113
 
114
  HEADERS = {
115
- "User-Agent": "Mozilla/5.0",
 
 
 
 
 
 
 
116
  }
117
 
 
118
  def download_file(url, path):
119
  with requests.get(
120
  url,
 
112
 
113
 
114
  HEADERS = {
115
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
116
+ "AppleWebKit/537.36 (KHTML, like Gecko) "
117
+ "Chrome/131.0.0.0 Safari/537.36",
118
+ "Accept": "*/*",
119
+ "Accept-Language": "ja,en-US;q=0.9,en;q=0.8",
120
+ "Referer": "https://www.youtube.com/",
121
+ "Origin": "https://www.youtube.com",
122
+ "Range": "bytes=0-",
123
  }
124
 
125
+
126
  def download_file(url, path):
127
  with requests.get(
128
  url,