Use console instead of local_server for authentication in Youtube to enable scripting

This commit is contained in:
LecygneNoir 2018-10-18 22:53:45 +02:00
parent 75aa36e1aa
commit 20d1ab6a11

View file

@ -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"]