Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def download_video():
|
|
| 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
|
|
|
|
| 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
|