Commit
·
d35bbff
1
Parent(s):
7fa79d6
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,8 @@ def get_text(url):
|
|
31 |
output_text_transcribe = ''
|
32 |
|
33 |
yt = YouTube(url)
|
34 |
-
|
|
|
35 |
video = yt.streams.filter(only_audio=True).first()
|
36 |
out_file=video.download(output_path=".")
|
37 |
base, ext = os.path.splitext(out_file)
|
|
|
31 |
output_text_transcribe = ''
|
32 |
|
33 |
yt = YouTube(url)
|
34 |
+
video_length = yt.length
|
35 |
+
if video_length < 5400:
|
36 |
video = yt.streams.filter(only_audio=True).first()
|
37 |
out_file=video.download(output_path=".")
|
38 |
base, ext = os.path.splitext(out_file)
|