{% if valid_url %} {% else %} Invalid Youtube URL: {{ contents }} {% endif %}