From cb1c899a4570e8644dad572c7f00a3d96c844a2f Mon Sep 17 00:00:00 2001 From: James Taylor Date: Tue, 23 Jul 2019 22:55:15 -0700 Subject: channel: Add short description under channel name --- youtube/channel.py | 2 +- youtube/templates/channel.html | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'youtube') diff --git a/youtube/channel.py b/youtube/channel.py index 4f719ae..04f698b 100644 --- a/youtube/channel.py +++ b/youtube/channel.py @@ -166,7 +166,7 @@ def extract_info(polymer_json, tab): # stuff from microformat (info given by youtube for every page on channel) - info['description'] = microformat['description'] + info['short_description'] = microformat['description'] info['channel_name'] = microformat['title'] info['avatar'] = microformat['thumbnail']['thumbnails'][0]['url'] channel_url = microformat['urlCanonical'].rstrip('/') diff --git a/youtube/templates/channel.html b/youtube/templates/channel.html index ffcf793..8293559 100644 --- a/youtube/templates/channel.html +++ b/youtube/templates/channel.html @@ -18,7 +18,7 @@ height:200px; width:200px; } - main .title{ + main .summary{ grid-row:1; grid-column:2; } @@ -77,7 +77,10 @@ {% block main %} -

{{ channel_name }}

+
+

{{ channel_name }}

+

{{ short_description }}

+