watch.py regression: fix error page

This commit is contained in:
James Taylor 2019-07-07 17:46:07 -07:00
parent 728b2b73d4
commit b854dab314

View File

@ -156,7 +156,7 @@ def get_watch_page():
comments_html, info = tasks[0].value, tasks[1].value comments_html, info = tasks[0].value, tasks[1].value
if isinstance(info, str): # youtube error if isinstance(info, str): # youtube error
return flask.render_template('error.html', header = html_common.get_header, error_mesage = info) return flask.render_template('error.html', error_message = info)
video_info = { video_info = {
"duration": util.seconds_to_timestamp(info["duration"]), "duration": util.seconds_to_timestamp(info["duration"]),