{{ (info['video_count']|commatize + ' videos') if info['type'] == 'playlist' else info['duration'] }}
{% endif %}{% macro text_runs(runs) %}
{%- if runs[0] is mapping -%}
{%- for text_run in runs -%}
{%- if text_run.get("bold", false) -%}
{{ text_run["text"] }}
{%- elif text_run.get('italics', false) -%}
{{ text_run["text"] }}
{%- else -%}
{{ text_run["text"] }}
{%- endif -%}
{%- endfor -%}
{%- elif runs -%}
{{ runs }}
{%- endif -%}
{% endmacro %}
{% macro item(info, description=false, horizontal=true, include_author=true, include_badges=true, lazy_load=false) %}
{{ (info['video_count']|commatize + ' videos') if info['type'] == 'playlist' else info['duration'] }}{{ info['title'] }}
{% if include_author %}
{% if info.get('author_url') %}
{{ info['author'] }}
{% else %}
{{ info['author'] }}
{% endif %}
{% endif %}