Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,9 +16,9 @@ def get_audio_url():
|
|
| 16 |
return jsonify({"error": "Missing 'url' query parameter"}), 400
|
| 17 |
|
| 18 |
try:
|
| 19 |
-
proxies
|
| 20 |
-
'http':
|
| 21 |
-
'https':
|
| 22 |
}
|
| 23 |
yt = YouTube(video_url, proxies=proxies)
|
| 24 |
|
|
|
|
| 16 |
return jsonify({"error": "Missing 'url' query parameter"}), 400
|
| 17 |
|
| 18 |
try:
|
| 19 |
+
proxies={
|
| 20 |
+
'http':'http://lfvqisry-rotate:an43nwquy0o9@p.webshare.io:80',
|
| 21 |
+
'https':'https://lfvqisry-rotate:an43nwquy0o9@p.webshare.io:80'
|
| 22 |
}
|
| 23 |
yt = YouTube(video_url, proxies=proxies)
|
| 24 |
|