BoldActionMan commited on
Commit
2eb065f
·
verified ·
1 Parent(s): 9d7d74c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,8 +20,8 @@ def process_video(video_file, youtube_url, language_choice):
20
  if video_file != None and youtube_url != None:
21
  return None
22
  elif youtube_url != None:
23
- yt = YouTube(youtube_url)
24
- yt.streams.filter(progressive=True, file_extension='mp4').download(filename="original")
25
  video_file = "original.mp4"
26
 
27
  # Initialize paths and devices
 
20
  if video_file != None and youtube_url != None:
21
  return None
22
  elif youtube_url != None:
23
+ yt = YouTube(youtube_url, use_oauth=False, allow_oauth_cache=True)
24
+ yt.streams.filter(progressive=True, file_extension='mp4').first().download(filename="original")
25
  video_file = "original.mp4"
26
 
27
  # Initialize paths and devices