From 4fb8e0ae77eb09f042e27502242d2742ab375f2c Mon Sep 17 00:00:00 2001 From: PLUJA <64632615+pluja@users.noreply.github.com> Date: Fri, 4 Sep 2020 15:59:16 +0200 Subject: [PATCH] Update routes.py --- app/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes.py b/app/routes.py index fbbd5c2..0f249ac 100644 --- a/app/routes.py +++ b/app/routes.py @@ -32,7 +32,7 @@ config = json.load(open('yotter-config.json')) ########################## NITTERINSTANCE = config['nitterInstance'] # Must be https://.../ YOUTUBERSS = "https://www.youtube.com/feeds/videos.xml?channel_id=" -REGISTRATIONS = True +REGISTRATIONS = config['registrations'] ########################## #### Global variables #### @@ -717,4 +717,4 @@ def getYoutubePosts(ids): video.description = vid.summary_detail.value video.description = re.sub(r'^https?:\/\/.*[\r\n]*', '', video.description[0:120]+"...", flags=re.MULTILINE) videos.append(video) - return videos \ No newline at end of file + return videos