mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 17:39:16 +02:00
Use console instead of local_server for authentication in Youtube to enable scripting
This commit is contained in:
parent
75aa36e1aa
commit
20d1ab6a11
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ def get_authenticated_service():
|
||||||
client_secret=credential_params["_client_secret"]
|
client_secret=credential_params["_client_secret"]
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
credentials = flow.run_local_server()
|
credentials = flow.run_console()
|
||||||
with open(CREDENTIALS_PATH, 'w') as f:
|
with open(CREDENTIALS_PATH, 'w') as f:
|
||||||
p = copy.deepcopy(vars(credentials))
|
p = copy.deepcopy(vars(credentials))
|
||||||
del p["expiry"]
|
del p["expiry"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue