{% extends "base.html" %} {% block title %}Groupes de torrents — StreamFusion Admin{% endblock %} {% block page_title %}Groupes de torrents{% endblock %} {% block extra_head %} {% endblock %} {% block content %}

La recherche détecte automatiquement le type : TMDB ID (chiffres), info_hash (40 caractères hex), ou titre (recherche partielle).

{% if error %}
{{ error }}
{% endif %} {% if query and not error %} {% if not results %}
Aucun groupe trouvé pour {{ query }}
{% else %}
{% set total_items = results | sum(attribute='members', start=[]) | list | length %} {{ results | length }} groupe(s) · {{ total_items }} torrent(s) au total {% if search_type == 'tmdb' %} pour TMDB ID {{ query }} {% elif search_type == 'hash' %} pour hash {{ query[:20] }}… {% else %} pour le titre « {{ query }} » {% endif %}
{% for entry in results %} {% set g = entry.group %} {% set items = entry.members %} {% set gid = g.id if g else 'virtual' %} {% if g %}
Groupe #{{ g.id }} {% if g.canonical_title %} · {{ g.canonical_title }}{% endif %} {% if g.tmdb_id %} TMDB {{ g.tmdb_id }} {% endif %} {{ g.item_count }} item(s) {% if g.canonical_info_hash %}  · {{ g.canonical_info_hash[:12] }}… {% endif %}
{% else %}
Items non groupés — ces torrents ont l'info_hash recherché mais ne sont pas encore dans un groupe.
{% endif %}
{% for indexer_name, igroup in items | groupby('indexer') %} {% for r in igroup %} {% endfor %} {% endfor %}
Titre brut Indexeur Hash Taille Seeders Langues Mis à jour Liens
{{ indexer_name }} ({{ igroup | list | length }})
{% if r.type == 'series' %} S {% elif r.type == 'movie' %} M {% endif %} {{ r.raw_title }} {% if r.tmdb_id and (not g or r.tmdb_id != g.tmdb_id) %} TMDB {{ r.tmdb_id }} {% endif %} {{ r.indexer }}
{{ (r.info_hash or '')[:10] }}{% if r.info_hash %}…{% endif %} {% if r.info_hash %} {% endif %}
{{ r.size | fmt_size }} {{ r.seeders if r.seeders is not none else '—' }}
{% for lang in (r.languages or []) %} {{ lang }} {% endfor %}
{{ r.updated_at | fmt_relative }}
{{ r.updated_at | fmt_date }}
{% if r.info_hash %} {% endif %} {% if r.tmdb_id %} {% endif %}
{% endfor %}
{% endif %} {% endif %} {% endblock %}
{% block extra_scripts %} {% endblock %}