From 248aeca9aba09a2320adb6fba655f5548bcee770 Mon Sep 17 00:00:00 2001 From: Laszlo Zeke Date: Sun, 2 Apr 2017 20:02:23 +0200 Subject: [PATCH] Separating client id from app code --- TwitchRSS/app_id.py | 17 +++++++++++++++++ TwitchRSS/twitchrss.py | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 TwitchRSS/app_id.py diff --git a/TwitchRSS/app_id.py b/TwitchRSS/app_id.py new file mode 100644 index 0000000..f70f21a --- /dev/null +++ b/TwitchRSS/app_id.py @@ -0,0 +1,17 @@ +# +# Copyright 2017, 2016 Laszlo Zeke +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +TWITCH_CLIENT_ID = 'Insert_key_here' diff --git a/TwitchRSS/twitchrss.py b/TwitchRSS/twitchrss.py index 39ece31..341ebc0 100644 --- a/TwitchRSS/twitchrss.py +++ b/TwitchRSS/twitchrss.py @@ -22,8 +22,9 @@ import datetime import logging from feedformatter import Feed from google.appengine.api import memcache +from app_id import TWITCH_CLIENT_ID + -TWITCH_CLIENT_ID = 'Insert_key_here' VODCACHE_PREFIX = 'vodcache' USERIDCACHE_PREFIX = 'userid' VOD_URL_TEMPLATE = 'https://api.twitch.tv/kraken/channels/%s/videos?broadcast_type=archive,highlight,upload'