Fix error with descriptions

This commit is contained in:
pluja 2020-10-11 07:51:49 +02:00
parent 36abcbd0d7
commit bd5d300386

View File

@ -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='')