izuemon commited on
Commit
2905969
·
verified ·
1 Parent(s): e6bc717

Update watcher.py

Browse files
Files changed (1) hide show
  1. watcher.py +4 -5
watcher.py CHANGED
@@ -109,14 +109,13 @@ def select_best_video_and_audio(items):
109
 
110
  video_items.sort(key=lambda x: x[0], reverse=True)
111
  return video_items[0][1], audio_item
 
 
112
  HEADERS = {
113
- "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
114
  "Accept": "*/*",
115
- "Accept-Language": "ja,en-US;q=0.9,en;q=0.8",
116
- "Accept-Encoding": "identity",
117
- "Connection": "keep-alive",
118
- "Referer": "https://www.youtube.com/",
119
  "Origin": "https://www.youtube.com",
 
120
  }
121
 
122
 
 
109
 
110
  video_items.sort(key=lambda x: x[0], reverse=True)
111
  return video_items[0][1], audio_item
112
+
113
+
114
  HEADERS = {
115
+ "User-Agent": "com.google.android.youtube/17.31.35 (Linux; U; Android 12)",
116
  "Accept": "*/*",
 
 
 
 
117
  "Origin": "https://www.youtube.com",
118
+ "Referer": "https://www.youtube.com/",
119
  }
120
 
121