fixed mp3 not downloading audio again
Browse files
app.py
CHANGED
@@ -204,6 +204,8 @@ def download_video_as_audio_only(yt_video, audio_output_format):
|
|
204 |
audio_clip = video_clip.audio
|
205 |
if audio_output_format == "wav":
|
206 |
audio_clip.write_audiofile("output.wav")
|
|
|
|
|
207 |
audio_clip.close()
|
208 |
video_clip.close()
|
209 |
for mp4remove in glob.glob("*.mp4"):
|
|
|
204 |
audio_clip = video_clip.audio
|
205 |
if audio_output_format == "wav":
|
206 |
audio_clip.write_audiofile("output.wav")
|
207 |
+
elif audio_output_format == "mp3":
|
208 |
+
audio_clip.write_audiofile("output.mp3")
|
209 |
audio_clip.close()
|
210 |
video_clip.close()
|
211 |
for mp4remove in glob.glob("*.mp4"):
|