Browse Source

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

feature/pt-playlist-1.3
LecygneNoir 5 years ago
parent
commit
20d1ab6a11
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/yt_upload.py

+ 1
- 1
lib/yt_upload.py 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"]

Loading…
Cancel
Save