soiz commited on
Commit
11511b8
·
verified ·
1 Parent(s): cfb92f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def download_video():
22
 
23
  # OAuthを有効化してYouTubeオブジェクトを作成
24
  try:
25
- yt = YouTube(youtube_url, use_oauth=False, allow_oauth_cache=True)
26
  except Exception as e:
27
  if "device" in str(e).lower():
28
  return jsonify({'error': 'OAuth authentication required. Please follow the instructions in the log to complete authentication.'}), 401
 
22
 
23
  # OAuthを有効化してYouTubeオブジェクトを作成
24
  try:
25
+ yt = YouTube(youtube_url, use_oauth=False)
26
  except Exception as e:
27
  if "device" in str(e).lower():
28
  return jsonify({'error': 'OAuth authentication required. Please follow the instructions in the log to complete authentication.'}), 401