From 6188ba81a099f31f7f1ca5d374e8b3c4175fb933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 31 Jan 2022 22:12:55 -0500 Subject: Fix author in playlist --- youtube/templates/common_elements.html | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'youtube/templates') diff --git a/youtube/templates/common_elements.html b/youtube/templates/common_elements.html index f019edf..11b04a2 100644 --- a/youtube/templates/common_elements.html +++ b/youtube/templates/common_elements.html @@ -37,17 +37,16 @@

{{ info['title'] }}

- {% set author_description = info['author'] %} - {% set AUTHOR_DESC_LENGTH = 35 %} - {% if author_description|length >= AUTHOR_DESC_LENGTH %} - {% set author_description = author_description[:AUTHOR_DESC_LENGTH].split(' ')[:-1]|join(' ') %} - {% if not author_description[-1] in ['.', '?', ':', '!'] %} - {% set author_more = author_description + '…' %} - {% set author_description = author_more|replace('"','') %} - {% endif %} - {% endif %} - {% if include_author %} + {% set author_description = info['author'] %} + {% set AUTHOR_DESC_LENGTH = 35 %} + {% if author_description|length >= AUTHOR_DESC_LENGTH %} + {% set author_description = author_description[:AUTHOR_DESC_LENGTH].split(' ')[:-1]|join(' ') %} + {% if not author_description[-1] in ['.', '?', ':', '!'] %} + {% set author_more = author_description + '…' %} + {% set author_description = author_more|replace('"','') %} + {% endif %} + {% endif %} {% if info.get('author_url') %}
{{ author_description }}
{% else %} -- cgit v1.2.3