aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/comments.py
diff options
context:
space:
mode:
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">