mzltest commited on
Commit
20add8e
·
1 Parent(s): 8a7a4b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,7 +76,7 @@ def download_audio(url):
76
 
77
  def downloadTubeUpload(query):
78
  # Step 1: Search for videos with the given query
79
- search_url = f"https://draw-8fj-staging.begin.app/api/search/{urlencode(query)}"
80
  search_response = requests.get(search_url).json()
81
 
82
  # Step 2: Find the first video with duration less than 10 minutes and extract its ID
@@ -92,7 +92,7 @@ def downloadTubeUpload(query):
92
  return None
93
 
94
  # Step 3: Get the formats for the video and find the URL for the best audio-only format
95
- formats_url = f"https://draw-8fj-staging.begin.app/api/info/{video_id}"
96
  formats_response = requests.get(formats_url).json()
97
 
98
  best_audio_format = None
 
76
 
77
  def downloadTubeUpload(query):
78
  # Step 1: Search for videos with the given query
79
+ search_url = f"https://draw-8fj.begin.app/api/search/{urlencode(query)}"
80
  search_response = requests.get(search_url).json()
81
 
82
  # Step 2: Find the first video with duration less than 10 minutes and extract its ID
 
92
  return None
93
 
94
  # Step 3: Get the formats for the video and find the URL for the best audio-only format
95
+ formats_url = f"https://draw-8fj.begin.app/api/info/{video_id}"
96
  formats_response = requests.get(formats_url).json()
97
 
98
  best_audio_format = None