Browse Source

Fix some spacing

pull/54/head
Zykino 3 years ago
parent
commit
ea39fe9854
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      prismedia/yt_upload.py

+ 2
- 1
prismedia/yt_upload.py View File

@ -60,6 +60,7 @@ def get_authenticated_service():
check_authenticated_scopes()
flow = InstalledAppFlow.from_client_secrets_file(
CLIENT_SECRETS_FILE, SCOPES)
if exists(CREDENTIALS_PATH):
with open(CREDENTIALS_PATH, 'r') as f:
credential_params = json.load(f)
@ -76,7 +77,7 @@ def get_authenticated_service():
p = copy.deepcopy(vars(credentials))
del p["expiry"]
json.dump(p, f)
return build(API_SERVICE_NAME, API_VERSION, credentials=credentials, cache_discovery=False)
return build(API_SERVICE_NAME, API_VERSION, credentials=credentials, cache_discovery=False)
def check_authenticated_scopes():

Loading…
Cancel
Save