Spaces:
Runtime error
Runtime error
Commit
•
127c67b
1
Parent(s):
1064e64
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ embed_html2 = '" title="YouTube video player" frameborder="0" allow="acceleromet
|
|
15 |
def download_audio(id_video):
|
16 |
video = YouTube(id_video)
|
17 |
id = id_video.split("?v=")[-1][:11]
|
|
|
18 |
audio_streams = video.streams.filter(only_audio=True)
|
19 |
audio_stream = audio_streams[0]
|
20 |
audio_file = audio_stream.download()
|
|
|
15 |
def download_audio(id_video):
|
16 |
video = YouTube(id_video)
|
17 |
id = id_video.split("?v=")[-1][:11]
|
18 |
+
print("ID youtube ", id)
|
19 |
audio_streams = video.streams.filter(only_audio=True)
|
20 |
audio_stream = audio_streams[0]
|
21 |
audio_file = audio_stream.download()
|