Rename username to channel_id in more places
This commit is contained in:
parent
e98f693aaf
commit
005c1239a6
@ -320,8 +320,8 @@ def comment_box_account_options():
|
|||||||
comment_box_template = Template('''
|
comment_box_template = Template('''
|
||||||
<form action="$form_action" method="post" class="comment-form">
|
<form action="$form_action" method="post" class="comment-form">
|
||||||
<div id="comment-account-options">
|
<div id="comment-account-options">
|
||||||
<label for="username-selection">Account:</label>
|
<label for="account-selection">Account:</label>
|
||||||
<select id="username-selection" name="username">
|
<select id="account-selection" name="channel_id">
|
||||||
$options
|
$options
|
||||||
</select>
|
</select>
|
||||||
<a href="''' + common.URL_ORIGIN + '''/login" target="_blank">Add account</a>
|
<a href="''' + common.URL_ORIGIN + '''/login" target="_blank">Add account</a>
|
||||||
|
@ -108,8 +108,8 @@ def get_session_token(video_id, cookiejar):
|
|||||||
raise Exception("Couldn't find xsrf_token")
|
raise Exception("Couldn't find xsrf_token")
|
||||||
|
|
||||||
def post_comment(parameters, fields):
|
def post_comment(parameters, fields):
|
||||||
username = fields['username'][0]
|
channel_id = fields['channel_id'][0]
|
||||||
cookiejar = accounts.account_cookiejar(username)
|
cookiejar = accounts.account_cookiejar(channel_id)
|
||||||
|
|
||||||
#parameters = urllib.parse.parse_qs(query_string)
|
#parameters = urllib.parse.parse_qs(query_string)
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user