Update app.py
Browse files
app.py
CHANGED
@@ -150,11 +150,12 @@ async def yt_audio(url: str):
|
|
150 |
},
|
151 |
"videoId": videoId
|
152 |
}
|
|
|
153 |
|
154 |
# 发送请求
|
155 |
logging.info(f"Sending request to URL: {url} with video ID: {videoId}")
|
156 |
response = requests.post(
|
157 |
-
|
158 |
timeout=20,
|
159 |
json=body,
|
160 |
headers=headers
|
|
|
150 |
},
|
151 |
"videoId": videoId
|
152 |
}
|
153 |
+
Player_Url = https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false
|
154 |
|
155 |
# 发送请求
|
156 |
logging.info(f"Sending request to URL: {url} with video ID: {videoId}")
|
157 |
response = requests.post(
|
158 |
+
PPlayer_Url,
|
159 |
timeout=20,
|
160 |
json=body,
|
161 |
headers=headers
|