Update app.py
Browse files
app.py
CHANGED
|
@@ -116,7 +116,7 @@ async def yt_audio(url: str):
|
|
| 116 |
try:
|
| 117 |
# 设置请求头
|
| 118 |
headers = {
|
| 119 |
-
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15"
|
| 120 |
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
|
| 121 |
"Referer": "https://www.youtube.com/"
|
| 122 |
}
|
|
|
|
| 116 |
try:
|
| 117 |
# 设置请求头
|
| 118 |
headers = {
|
| 119 |
+
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.2 Safari/605.1.15",
|
| 120 |
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
|
| 121 |
"Referer": "https://www.youtube.com/"
|
| 122 |
}
|