Fix error with descriptions
This commit is contained in:
parent
36abcbd0d7
commit
bd5d300386
@ -484,7 +484,12 @@ def watch():
|
||||
v_format['audio_valid'] = True
|
||||
|
||||
# Markup description
|
||||
try:
|
||||
info['description'] = Markup(bleach.linkify(info['description'].replace("\n", "<br>")))
|
||||
except AttributeError:
|
||||
print(info['description'])
|
||||
info['description'] = Markup(bleach.linkify(info['description']))
|
||||
|
||||
|
||||
# Get comments
|
||||
videocomments = comments.video_comments(id, sort=0, offset=0, lc='', secret_key='')
|
||||
|
Reference in New Issue
Block a user