Skip to content

Commit

Permalink
quick fix for issue #27
Browse files Browse the repository at this point in the history
  • Loading branch information
zaharcelac committed Feb 26, 2021
1 parent d025169 commit 65e3e3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl_webui/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ def run(self):

# self.logger.debug(json.dumps(info_dict, indent=4))

info_dict['description'] = info_dict['description'].replace('\n', '<br />');
if "description" in info_dict:
info_dict['description'] = info_dict['description'].replace('\n', '<br />');
payload = {'tid': self.tid, 'data': info_dict}
self.msg_cli.put('info_dict', payload)

Expand Down

0 comments on commit 65e3e3d

Please sign in to comment.