diff options
author | James Taylor <user234683@users.noreply.github.com> | 2019-08-10 18:12:02 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2019-08-10 18:12:02 -0700 |
commit | 2617f87e17b94646eb5a248360a7e0f9b7675d3e (patch) | |
tree | 83ea80a52c410e34415cbb93b9b125d886618cbe /youtube/channel.py | |
parent | 33bba9762c7f96a754351f3422f74364c5bdecac (diff) | |
download | yt-local-2617f87e17b94646eb5a248360a7e0f9b7675d3e.tar.lz yt-local-2617f87e17b94646eb5a248360a7e0f9b7675d3e.tar.xz yt-local-2617f87e17b94646eb5a248360a7e0f9b7675d3e.zip |
Add subscribe button on channels
Diffstat (limited to 'youtube/channel.py')
-rw-r--r-- | youtube/channel.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube/channel.py b/youtube/channel.py index 4c7d380..9d0532a 100644 --- a/youtube/channel.py +++ b/youtube/channel.py @@ -1,5 +1,5 @@ import base64 -from youtube import util, yt_data_extract, local_playlist +from youtube import util, yt_data_extract, local_playlist, subscriptions from youtube import yt_app import urllib @@ -312,7 +312,7 @@ def get_channel_page(channel_id, tab='videos'): info['current_sort'] = sort elif tab == 'search': info['search_box_value'] = query - + info['subscribed'] = subscriptions.is_subscribed(info['channel_id']) return flask.render_template('channel.html', parameters_dictionary = request.args, @@ -352,7 +352,7 @@ def get_channel_page_general_url(base_url, tab, request): info['current_sort'] = sort elif tab == 'search': info['search_box_value'] = query - + info['subscribed'] = subscriptions.is_subscribed(info['channel_id']) return flask.render_template('channel.html', parameters_dictionary = request.args, |