{% extends "base.html" %} {% block title %}{{ page_title }} — yt-archiver{% endblock %} {% block content %}
Sort by: {% set base = ('/channels/' + channel_id) if channel_id else '/videos' %} {% for field, label in [('upload_date','Date'),('view_count','Views'),('title','Title'),('duration','Duration')] %} {{ label }} {% endfor %}
{% for v in videos %} {% endfor %}
Date Title Duration Views
{{ v.upload_date or '—' }} {{ v.title }} {{ v.duration|duration }} {{ v.view_count|count }} Watch ↗
{% endblock %}