Spaces:
Runtime error
Runtime error
Campfireman
commited on
Commit
•
198606c
1
Parent(s):
f3a7d98
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def convert_video_to_audio_ffmpeg(video_file, output_ext="mp3"):
|
|
27 |
return (filename + "." + ext)
|
28 |
|
29 |
def get_video(url):
|
30 |
-
if(
|
31 |
notify = "Invalid URL!"
|
32 |
return False
|
33 |
yt = YouTube(url)
|
|
|
27 |
return (filename + "." + ext)
|
28 |
|
29 |
def get_video(url):
|
30 |
+
if(validators.url(url) == False):
|
31 |
notify = "Invalid URL!"
|
32 |
return False
|
33 |
yt = YouTube(url)
|