Browse Source

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

victor héry 1 year 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/
58 58
 target/
59 59
 
60 60
 # Project
61
-client_secret.json
61
+youtube_secret.json
62
+peertube_secret

+ 1
- 1
lib/yt_upload.py View File

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

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


Loading…
Cancel
Save