aboutsummaryrefslogtreecommitdiffstats
path: root/youtube
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-01-31 22:12:55 -0500
committerJesús <heckyel@hyperbola.info>2022-01-31 22:12:55 -0500
commit6188ba81a099f31f7f1ca5d374e8b3c4175fb933 (patch)
treec701a38f60e742a5ab7b2513479dad6746e23d93 /youtube
parenta465805cb95c6e872905f53256d14660006e3b81 (diff)
downloadyt-local-6188ba81a099f31f7f1ca5d374e8b3c4175fb933.tar.lz
yt-local-6188ba81a099f31f7f1ca5d374e8b3c4175fb933.tar.xz
yt-local-6188ba81a099f31f7f1ca5d374e8b3c4175fb933.zip
Fix author in playlist
Diffstat (limited to 'youtube')
-rw-r--r--youtube/templates/common_elements.html19
1 files changed, 9 insertions, 10 deletions
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 @@
</a>
<h4 class="title"><a href="{{ info['url'] }}" title="{{ info['title'] }}">{{ info['title'] }}</a></h4>
- {% 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') %}
<address title="{{ info['author'] }}"><b><a href="{{ info['author_url'] }}">{{ author_description }}</a></b></address>
{% else %}