Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
·
17327d2
1
Parent(s):
3975016
Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,11 @@ from pytube import YouTube
|
|
11 |
global notify
|
12 |
notify = ""
|
13 |
global temp_addr
|
14 |
-
temp_addr = "/yt_download/" + str(datetime.datetime.now())
|
15 |
|
16 |
def clean_up():
|
17 |
-
os.rmdir("/yt_download")
|
18 |
-
os.mkdir("/yt_download")
|
19 |
|
20 |
def convert_video_to_audio_ffmpeg(video_file, output_ext="mp3"):
|
21 |
"""Converts video to audio directly using `ffmpeg` command
|
|
|
11 |
global notify
|
12 |
notify = ""
|
13 |
global temp_addr
|
14 |
+
temp_addr = "YouTubeAudioGrabNTake/yt_download/" + str(datetime.datetime.now())
|
15 |
|
16 |
def clean_up():
|
17 |
+
os.rmdir("YouTubeAudioGrabNTake/yt_download/")
|
18 |
+
os.mkdir("YouTubeAudioGrabNTake/yt_download/")
|
19 |
|
20 |
def convert_video_to_audio_ffmpeg(video_file, output_ext="mp3"):
|
21 |
"""Converts video to audio directly using `ffmpeg` command
|