aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2018-12-31 00:00:06 -0800
committerJames Taylor <user234683@users.noreply.github.com>2018-12-31 00:00:06 -0800
commit005c1239a654ef4f3594c028ae68ddac4fb30676 (patch)
tree68ce4e1518b3f777ab8550a04367b44d7196904e
parente98f693aafe9bf7f3252c00f57b1aa00bfdf2b80 (diff)
downloadyt-local-005c1239a654ef4f3594c028ae68ddac4fb30676.tar.lz
yt-local-005c1239a654ef4f3594c028ae68ddac4fb30676.tar.xz
yt-local-005c1239a654ef4f3594c028ae68ddac4fb30676.zip
Rename username to channel_id in more places
-rw-r--r--youtube/comments.py4
-rw-r--r--youtube/post_comment.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/youtube/comments.py b/youtube/comments.py
index e650a35..58a03ac 100644
--- a/youtube/comments.py
+++ b/youtube/comments.py
@@ -320,8 +320,8 @@ def comment_box_account_options():
comment_box_template = Template('''
<form action="$form_action" method="post" class="comment-form">
<div id="comment-account-options">
- <label for="username-selection">Account:</label>
- <select id="username-selection" name="username">
+ <label for="account-selection">Account:</label>
+ <select id="account-selection" name="channel_id">
$options
</select>
<a href="''' + common.URL_ORIGIN + '''/login" target="_blank">Add account</a>
diff --git a/youtube/post_comment.py b/youtube/post_comment.py
index dca8a1f..45e9f4b 100644
--- a/youtube/post_comment.py
+++ b/youtube/post_comment.py
@@ -108,8 +108,8 @@ def get_session_token(video_id, cookiejar):
raise Exception("Couldn't find xsrf_token")
def post_comment(parameters, fields):
- username = fields['username'][0]
- cookiejar = accounts.account_cookiejar(username)
+ channel_id = fields['channel_id'][0]
+ cookiejar = accounts.account_cookiejar(channel_id)
#parameters = urllib.parse.parse_qs(query_string)
try: