Update routes.py

This commit is contained in:
PLUJA 2020-09-04 15:59:16 +02:00 committed by GitHub
parent 5c9d19f5d7
commit 4fb8e0ae77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
return videos