From 54338a1c1c94b20c55cbb402279a0d1286d90120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?victor=20h=C3=A9ry?= Date: Wed, 28 Feb 2018 11:49:26 +0100 Subject: [PATCH] use youtube_secret instead of client_secret to allow more flexibility (possibility to use peertube_secret) --- .gitignore | 3 ++- lib/yt_upload.py | 2 +- client_secret.json.sample => youtube_secret.json.sample | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename client_secret.json.sample => youtube_secret.json.sample (100%) diff --git a/.gitignore b/.gitignore index bfaf759..5e4c57a 100644 --- a/.gitignore +++ b/.gitignore @@ -58,4 +58,5 @@ docs/_build/ target/ # Project -client_secret.json \ No newline at end of file +youtube_secret.json +peertube_secret \ No newline at end of file diff --git a/lib/yt_upload.py b/lib/yt_upload.py index 80eb16f..15c0978 100644 --- a/lib/yt_upload.py +++ b/lib/yt_upload.py @@ -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' diff --git a/client_secret.json.sample b/youtube_secret.json.sample similarity index 100% rename from client_secret.json.sample rename to youtube_secret.json.sample