kevinwang676 commited on
Commit
9d3a1b1
·
verified ·
1 Parent(s): 3439402

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -23,11 +23,11 @@ def get_video_info(html_url):
23
  return audio_url, video_url
24
 
25
  def save_audio(title, html_url):
26
- #audio_url = get_video_info(html_url)[0]
27
- video_url = get_video_info(html_url)[1]
28
 
29
- #audio_content = get_response(audio_url).content
30
- video_content = get_response(video_url).content
31
 
32
  with open(title + '.mp3', mode='wb') as f:
33
  f.write(audio_content)
 
23
  return audio_url, video_url
24
 
25
  def save_audio(title, html_url):
26
+ audio_url = get_video_info(html_url)[0]
27
+ #video_url = get_video_info(html_url)[1]
28
 
29
+ audio_content = get_response(audio_url).content
30
+ #video_content = get_response(video_url).content
31
 
32
  with open(title + '.mp3', mode='wb') as f:
33
  f.write(audio_content)