Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
27 |
-
video_url = get_video_info(html_url)[1]
|
28 |
|
29 |
-
|
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)
|