aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/post_comment.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-12-26 19:37:15 -0800
committerJames Taylor <user234683@users.noreply.github.com>2018-12-26 19:37:15 -0800
commitfcbd8ebef6f4b3648f9b04cb8b7788fed4aeb719 (patch)
tree73625c7c9a30c742c76cb055219ab6be9d959a99 /youtube/post_comment.py
parentdfbd7778d10c15cf2e12e9007beba5458a3f3ab1 (diff)
downloadyt-local-fcbd8ebef6f4b3648f9b04cb8b7788fed4aeb719.tar.lz
yt-local-fcbd8ebef6f4b3648f9b04cb8b7788fed4aeb719.tar.xz
yt-local-fcbd8ebef6f4b3648f9b04cb8b7788fed4aeb719.zip
Added account selection to comment boxes
Diffstat (limited to 'youtube/post_comment.py')
-rw-r--r--youtube/post_comment.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube/post_comment.py b/youtube/post_comment.py
index 305120c..2c9410c 100644
--- a/youtube/post_comment.py
+++ b/youtube/post_comment.py
@@ -160,18 +160,21 @@ textarea{
}
.comment-form{
grid-column:2;
+ justify-content:start;
}'''
if parent_id: # comment reply
comment_box = comments.comment_box_template.substitute(
form_action = common.URL_ORIGIN + '/comments?parent_id=' + parent_id + "&video_id=" + video_id,
video_id_input = '',
post_text = "Post reply",
+ options=comments.comment_box_account_options(),
)
else:
comment_box = comments.comment_box_template.substitute(
form_action = common.URL_ORIGIN + '/post_comment',
video_id_input = '''<input type="hidden" name="video_id" value="''' + video_id + '''">''',
post_text = "Post comment",
+ options=comments.comment_box_account_options(),
)
page = '''<div class="left">\n''' + comment_box + '''</div>\n'''