aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/watch.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-09-01 21:53:40 -0700
committerJames Taylor <user234683@users.noreply.github.com>2018-09-01 21:53:40 -0700
commitffeccc5ac3740080a6597e74af35e03e53425318 (patch)
tree0a7e72676663351019b5fe3a42fe7ef9427c43ed /youtube/watch.py
parentcdf8b8b0c80c7043a90543f4b017bd3184670c8a (diff)
downloadyt-local-ffeccc5ac3740080a6597e74af35e03e53425318.tar.lz
yt-local-ffeccc5ac3740080a6597e74af35e03e53425318.tar.xz
yt-local-ffeccc5ac3740080a6597e74af35e03e53425318.zip
Reorganize comment system
Diffstat (limited to 'youtube/watch.py')
-rw-r--r--youtube/watch.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/youtube/watch.py b/youtube/watch.py
index 5c3d141..d238b2f 100644
--- a/youtube/watch.py
+++ b/youtube/watch.py
@@ -230,13 +230,9 @@ def get_watch_page(query_string):
gevent.spawn(extract_info, downloader, "https://www.youtube.com/watch?v=" + id, download=False)
)
gevent.joinall(tasks)
- comments_info, info = tasks[0].value, tasks[1].value
- comments_html, ctoken = comments_info
+ comments_html, info = tasks[0].value, tasks[1].value
+
- if ctoken == '':
- more_comments_button = ''
- else:
- more_comments_button = more_comments_template.substitute(url = URL_ORIGIN + '/comments?ctoken=' + ctoken)
#comments_html = comments.comments_html(video_id(url))
#info = YoutubeDL().extract_info(url, download=False)
@@ -340,10 +336,9 @@ def get_watch_page(query_string):
description = html.escape(info["description"]),
video_sources = formats_html(sorted_formats) + subtitles_html(info),
related = related_videos_html,
- post_comment_link = post_comment_link,
- comment_count = '',
+
comments = comments_html,
- more_comments_button = more_comments_button,
+
music_list = music_list_html,
is_unlisted = '<span class="is-unlisted">Unlisted</span>' if info['unlisted'] else '',
)