SteveDigital commited on
Commit
d35bbff
·
1 Parent(s): 7fa79d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -31,7 +31,8 @@ def get_text(url):
31
  output_text_transcribe = ''
32
 
33
  yt = YouTube(url)
34
- if yt.length < 5400:
 
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)