SteveDigital commited on
Commit
54e9c4b
1 Parent(s): e3b3ac8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -19,10 +19,10 @@ def get_text(url):
19
  video = yt.streams.filter(only_audio=True).first()
20
  out_file=video.download(output_path=".")
21
 
22
- if file_stats.st_size <= 20000000
23
- file_stats = os.stat(out_file)
24
- logging.info(f'Size of audio file in Bytes: {file_stats.st_size}')
25
-
26
  base, ext = os.path.splitext(out_file)
27
  new_file = base+'.mp3'
28
  os.rename(out_file, new_file)
 
19
  video = yt.streams.filter(only_audio=True).first()
20
  out_file=video.download(output_path=".")
21
 
22
+ file_stats = os.stat(out_file)
23
+ logging.info(f'Size of audio file in Bytes: {file_stats.st_size}')
24
+
25
+ if file_stats.st_size <= 20000000
26
  base, ext = os.path.splitext(out_file)
27
  new_file = base+'.mp3'
28
  os.rename(out_file, new_file)