Update routes.py
This commit is contained in:
parent
5c9d19f5d7
commit
4fb8e0ae77
@ -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
|
||||
|
Reference in New Issue
Block a user