mzltest commited on
Commit
6934e31
·
1 Parent(s): 3d212d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()