Spaces:
Running
Running
Update watcher.py
Browse files- watcher.py +1 -5
watcher.py
CHANGED
|
@@ -112,13 +112,9 @@ def select_best_video_and_audio(items):
|
|
| 112 |
|
| 113 |
|
| 114 |
HEADERS = {
|
| 115 |
-
"User-Agent": "
|
| 116 |
-
"Accept": "*/*",
|
| 117 |
-
"Origin": "https://www.youtube.com",
|
| 118 |
-
"Referer": "https://www.youtube.com/",
|
| 119 |
}
|
| 120 |
|
| 121 |
-
|
| 122 |
def download_file(url, path):
|
| 123 |
with requests.get(
|
| 124 |
url,
|
|
|
|
| 112 |
|
| 113 |
|
| 114 |
HEADERS = {
|
| 115 |
+
"User-Agent": "Mozilla/5.0",
|
|
|
|
|
|
|
|
|
|
| 116 |
}
|
| 117 |
|
|
|
|
| 118 |
def download_file(url, path):
|
| 119 |
with requests.get(
|
| 120 |
url,
|