aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-07-19 22:27:10 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-07-19 22:27:10 -0700
commit8cad77ad0d7e0a0d07629087e2ee1709688cb58d (patch)
treea0fbcb06df86e8174d1d28a280c8748fcec7516e /youtube/watch.py
parentb854dab314267bd7f4677520b83a4e8abd0a1a6a (diff)
downloadyt-local-8cad77ad0d7e0a0d07629087e2ee1709688cb58d.tar.lz
yt-local-8cad77ad0d7e0a0d07629087e2ee1709688cb58d.tar.xz
yt-local-8cad77ad0d7e0a0d07629087e2ee1709688cb58d.zip
Convert comments to flask framework
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index 1972cb4..dc50b7b 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -153,7 +153,7 @@ def get_watch_page():
gevent.spawn(extract_info, yt_dl_downloader, "https://www.youtube.com/watch?v=" + video_id, download=False)
)
gevent.joinall(tasks)
- comments_html, info = tasks[0].value, tasks[1].value
+ comments_info, info = tasks[0].value, tasks[1].value
if isinstance(info, str): # youtube error
return flask.render_template('error.html', error_message = info)
@@ -207,9 +207,7 @@ def get_watch_page():
related = related_videos,
music_list = info['music_list'],
music_attributes = get_ordered_music_list_attributes(info['music_list']),
-
- # TODO: refactor these
- comments = comments_html,
+ comments_info = comments_info,
title = info['title'],
uploader = info['uploader'],