diff options
author | James Taylor <user234683@users.noreply.github.com> | 2018-07-08 02:56:54 -0700 |
---|---|---|
committer | James Taylor <user234683@users.noreply.github.com> | 2018-07-08 16:22:23 -0700 |
commit | 26620cbac85f1fa5057e54fa8d91c35d907c0e0f (patch) | |
tree | 40763f1590f80c1d4e5d7d0ac1c1ce9d720ad3fb /youtube/channel.py | |
parent | 6ad09eb53a8b79b2241f56009d9757f8cac7181f (diff) | |
download | yt-local-26620cbac85f1fa5057e54fa8d91c35d907c0e0f.tar.lz yt-local-26620cbac85f1fa5057e54fa8d91c35d907c0e0f.tar.xz yt-local-26620cbac85f1fa5057e54fa8d91c35d907c0e0f.zip |
front-end support for adding to playlists
Diffstat (limited to 'youtube/channel.py')
-rw-r--r-- | youtube/channel.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube/channel.py b/youtube/channel.py index 4d7b563..6fd0dbd 100644 --- a/youtube/channel.py +++ b/youtube/channel.py @@ -156,6 +156,7 @@ def channel_videos_html(polymer_json, current_page=1, number_of_videos = 1000, c items_html = grid_items_html(items, {'author': microformat['title']}) return yt_channel_items_template.substitute( + header = common.get_header(), channel_title = microformat['title'], channel_tabs = channel_tabs_html(channel_id, 'Videos'), avatar = '/' + microformat['thumbnail']['thumbnails'][0]['url'], @@ -190,6 +191,7 @@ def channel_playlists_html(polymer_json): items_html = grid_items_html(items, {'author': microformat['title']}) return yt_channel_items_template.substitute( + header = common.get_header(), channel_title = microformat['title'], channel_tabs = channel_tabs_html(channel_id, 'Playlists'), avatar = '/' + microformat['thumbnail']['thumbnails'][0]['url'], @@ -227,6 +229,7 @@ def channel_about_page(polymer_json): except KeyError: description = '' return yt_channel_about_template.substitute( + header = common.get_header(), page_title = common.get_plain_text(channel_metadata['title']) + ' - About', channel_title = common.get_plain_text(channel_metadata['title']), avatar = html.escape(avatar), |