aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/comments.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-12-30 23:27:51 -0800
committerJames Taylor <user234683@users.noreply.github.com>2018-12-30 23:27:51 -0800
commit913c258093d63f7b41c015587b6a8fad3b033bf3 (patch)
tree4b8494b0d2c782d3d7d5b8c47ab54a6c77f18ce8 /youtube/comments.py
parent248c2e1415c2776b07d19cedb56605fc634c022d (diff)
downloadyt-local-913c258093d63f7b41c015587b6a8fad3b033bf3.tar.lz
yt-local-913c258093d63f7b41c015587b6a8fad3b033bf3.tar.xz
yt-local-913c258093d63f7b41c015587b6a8fad3b033bf3.zip
Use channel id to uniquely identify accounts, not username
Diffstat (limited to 'youtube/comments.py')
-rw-r--r--youtube/comments.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/comments.py b/youtube/comments.py
index bec7ea4..e650a35 100644
--- a/youtube/comments.py
+++ b/youtube/comments.py
@@ -312,10 +312,10 @@ video_metadata_template = Template('''<section class="video-metadata">
</section>
''')
account_option_template = Template('''
- <option value="$username">$username</option>''')
+ <option value="$channel_id">$display_name</option>''')
def comment_box_account_options():
- return ''.join(account_option_template.substitute(username=username) for username in accounts.username_list())
+ return ''.join(account_option_template.substitute(channel_id=channel_id, display_name=display_name) for channel_id, display_name in accounts.account_list_data())
comment_box_template = Template('''
<form action="$form_action" method="post" class="comment-form">