{% extends "base.html" %} {% block title %}Vidéos · Shorts Stats{% endblock %} {% block content %} {% set days = ['', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.', 'dim.'] %} {% set j7_labels = {'pending': ('7 j à venir', 'pending'), 'collected': ('7 j relevé', 'ok'), 'unavailable': ('Vidéo indisponible', 'error'), 'failed': ('7 j en échec', 'error'), 'too_old': ('Découverte après 7 j', 'muted'), 'not_short': ('Pas un Short', 'muted')} %} {% set reading_labels = {'reading': 'lecture en cours', 'unread': 'à lire', 'stale': 'nouveaux à lire'} %}
{{ videos | length }} vidéo(s), les plus récentes d'abord{% if videos | length == 300 %} (300 au plus){% endif %}. Valeurs du dernier relevé ; « Relevés » détaille toutes les étapes.
| Sortie | Titre | Dernier relevé | Vues | Likes | Comm. | Prochain relevé | Suivi | Commentaires lus et thèmes |
|---|---|---|---|---|---|---|---|---|
| {{ days[v.isodow] }} {{ v.published_at.strftime('%d/%m/%y %H:%M') }} il y a {{ v.age_h | age }} |
{{ v.title or v.video_id }}
{{ v.channel }}{% if v.duration is not none %} · {{ v.duration }} s{% endif %}
{% if v.snapshot_count %}
{{ v.snapshot_count }} relevé(s) |
{% if has_last %}{{ v.last_step }} {{ v.last_at.strftime('%d/%m %H:%M') }} {% elif j7_only %}7 j {{ v.collected_at.strftime('%d/%m %H:%M') }} {% else %}aucun{% endif %} | {{ (v.last_views if has_last else v.views if j7_only else none) | num }} | {{ (v.last_likes if has_last else v.likes if j7_only else none) | num }} | {{ (v.last_comments if has_last else v.comments if j7_only else none) | num }} | {% if v.next_step %}{{ v.next_step }} {{ 'à la prochaine collecte' if v.next_overdue else v.next_at.strftime('%d/%m %H:%M') }} {% elif v.ended == 'done' %}suivi terminé (3 ans) {% else %}aucun{% endif %} |
{% if v.ended == 'unavailable' %}Vidéo disparue
{% elif v.ended == 'done' %}Suivi terminé
{% elif v.status == 'not_short' %}Hors suivi
{% elif v.status != 'unavailable' %}Suivi en cours{% endif %}
{% set j7 = j7_labels.get(v.status) %}
{% if j7 and v.status != 'not_short' %}{{ j7[0] }}{% endif %}
|
{% if v.comments_read %} {{ v.comments_read | num }} lu(s) {% for name, n in v.themes %}{{ name }} {{ n | num }} ({{ (100 * n / v.comments_read) | pct }} %){% endfor %} {% elif v.comments_latest == 0 %}aucun commentaire {% elif v.comments_latest is none and v.ended is none %}au prochain relevé {% elif v.ended is not none %}aucun{% endif %} {% set r = reading_labels.get(v.reading) if v.ended is none and v.comments_latest else none %} {% if r %}{{ r }}{% endif %} |
| Aucune vidéo pour ces critères. | ||||||||