From 20d1ab6a112c38cf12f69c29782f56c7934b62d0 Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Thu, 18 Oct 2018 22:53:45 +0200 Subject: [PATCH] Use console instead of local_server for authentication in Youtube to enable scripting --- lib/yt_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yt_upload.py b/lib/yt_upload.py index 82632a5..daebdc9 100644 --- a/lib/yt_upload.py +++ b/lib/yt_upload.py @@ -73,7 +73,7 @@ def get_authenticated_service(): client_secret=credential_params["_client_secret"] ) else: - credentials = flow.run_local_server() + credentials = flow.run_console() with open(CREDENTIALS_PATH, 'w') as f: p = copy.deepcopy(vars(credentials)) del p["expiry"]