Explorar el Código

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

master
victor héry hace 6 años
padre
commit
54338a1c1c
Se han modificado 3 ficheros con 3 adiciones y 2 borrados
  1. +2
    -1
      .gitignore
  2. +1
    -1
      lib/yt_upload.py
  3. +0
    -0
      youtube_secret.json.sample

+ 2
- 1
.gitignore Ver fichero

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

+ 1
- 1
lib/yt_upload.py Ver fichero

@ -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 Ver fichero


Cargando…
Cancelar
Guardar