{% if info['error'] %} {{ info['error'] }} {% else %} {% if lazy_load %} {% elif info['type'] == 'channel' %} {% else %} {% endif %} {% if info['type'] != 'channel' %} {{ (info['video_count']|commatize + ' videos') if info['type'] == 'playlist' else info['duration'] }} {% endif %} {{ info['title'] }} {% 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 %} {{ author_description }} {% endif %} {% endif %} {% if info['type'] == 'channel' %} {{ info['approx_subscriber_count'] }} subscribers {{ info['video_count']|commatize }} videos {% else %} {% if info.get('time_published') %} {{ info['time_published'] }} {% endif %} {% if info.get('approx_view_count') %} {{ info['approx_view_count'] }} views {% endif %} {% endif %} {% if info['type'] == 'video' %} {% endif %} {% endif %}