Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
•
d3ba29a
1
Parent(s):
6883eeb
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
|
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 = "./yt_download" # + str(int(datetime.datetime.timestamp))
|
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
|