Update app.py
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def downloadTubeUpload(query):
|
|
| 97 |
# Step 3: Get the formats for the video and find the URL for the best audio-only format
|
| 98 |
formats_url = f"https://draw-8fj.begin.app/api/info/{video_id}"
|
| 99 |
formats = requests.get(formats_url)
|
| 100 |
-
if formats.ok!=True
|
| 101 |
formats_url = f"https://draw-8fj-staging.begin.app/api/info/{video_id}"
|
| 102 |
formats = requests.get(formats_url)
|
| 103 |
formats_response=formats.json()
|
|
|
|
| 97 |
# Step 3: Get the formats for the video and find the URL for the best audio-only format
|
| 98 |
formats_url = f"https://draw-8fj.begin.app/api/info/{video_id}"
|
| 99 |
formats = requests.get(formats_url)
|
| 100 |
+
if formats.ok!=True:
|
| 101 |
formats_url = f"https://draw-8fj-staging.begin.app/api/info/{video_id}"
|
| 102 |
formats = requests.get(formats_url)
|
| 103 |
formats_response=formats.json()
|