Browse Source

use youtube_secret instead of client_secret to allow more flexibility (possibility to use peertube_secret)

tags/v0.5
victor héry 3 years ago
parent
commit
54338a1c1c
3 changed files with 3 additions and 2 deletions
  1. +2
    -1
      .gitignore
  2. +1
    -1
      lib/yt_upload.py
  3. +0
    -0
      youtube_secret.json.sample

+ 2
- 1
.gitignore View File

@ -58,4 +58,5 @@ docs/_build/
target/
# Project
client_secret.json
youtube_secret.json
peertube_secret

+ 1
- 1
lib/yt_upload.py View File

@ -33,7 +33,7 @@ RETRIABLE_EXCEPTIONS = (httplib2.HttpLib2Error, IOError, httplib.NotConnected,
RETRIABLE_STATUS_CODES = [500, 502, 503, 504]
CLIENT_SECRETS_FILE = 'client_secret.json'
CLIENT_SECRETS_FILE = 'youtube_secret.json'
SCOPES = ['https://www.googleapis.com/auth/youtube.upload']
API_SERVICE_NAME = 'youtube'
API_VERSION = 'v3'

client_secret.json.sample → youtube_secret.json.sample View File


Loading…
Cancel
Save