aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/subscriptions.py
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2019-08-10 18:12:02 -0700
committerJames Taylor <user234683@users.noreply.github.com>2019-08-10 18:12:02 -0700
commit2617f87e17b94646eb5a248360a7e0f9b7675d3e (patch)
tree83ea80a52c410e34415cbb93b9b125d886618cbe /youtube/subscriptions.py
parent33bba9762c7f96a754351f3422f74364c5bdecac (diff)
downloadyt-local-2617f87e17b94646eb5a248360a7e0f9b7675d3e.tar.lz
yt-local-2617f87e17b94646eb5a248360a7e0f9b7675d3e.tar.xz
yt-local-2617f87e17b94646eb5a248360a7e0f9b7675d3e.zip
Add subscribe button on channels
Diffstat (limited to 'youtube/subscriptions.py')
-rw-r--r--youtube/subscriptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube/subscriptions.py b/youtube/subscriptions.py
index fa0570c..c347e76 100644
--- a/youtube/subscriptions.py
+++ b/youtube/subscriptions.py
@@ -519,7 +519,7 @@ def get_subscriptions_page():
def post_subscriptions_page():
action = request.values['action']
if action == 'subscribe':
- if len(request.values.getlist('channel_id')) != len(request.values('channel_name')):
+ if len(request.values.getlist('channel_id')) != len(request.values.getlist('channel_name')):
return '400 Bad Request, length of channel_id != length of channel_name', 400
with_open_db(_subscribe, zip(request.values.getlist('channel_id'), request.values.getlist('channel_name')))