From f873050b3663c11526e07aeec72f69c409f417e2 Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 17 Jul 2026 20:25:58 +0200 Subject: [PATCH] =?UTF-8?q?UX:=20retrait=20du=20r=C3=A9glage=20P2P=20+=20d?= =?UTF-8?q?=C3=A9fauts=20de=20filtres=20plus=20sens=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Suppression de la case "Afficher les liens P2P" (source de confusion, peu utile face au débrideur). Le champ backend show_p2p reste mais figé à false ; l'install requiert désormais au moins un débrideur. - Défauts filtres : max/résolution = 10 (au lieu de 0), résultats = 30, taille min/max = 0 (illimité), résolutions/codecs/langues = toutes. Co-Authored-By: Claude Fable 5 --- core/config.py | 2 +- templates/configure.html | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/core/config.py b/core/config.py index f9be97e..75a59ad 100644 --- a/core/config.py +++ b/core/config.py @@ -60,7 +60,7 @@ DEFAULT_CONFIG = { "exclude_cam": True, "exclude_season_packs": False, "max_results": 30, # nombre max de streams renvoyés - "max_per_resolution": 0, # 0 = illimité + "max_per_resolution": 10, # 0 = illimité "cached_only": False, # ne montre que les torrents en cache débrideur "show_uncached": True, # affiche les non-cachés (clic = ajout au débrideur) "show_p2p": False, # streams P2P via le moteur torrent de Stremio (sans débrideur) diff --git a/templates/configure.html b/templates/configure.html index 5aa8e83..a6828f2 100644 --- a/templates/configure.html +++ b/templates/configure.html @@ -187,8 +187,8 @@
- - + +
@@ -210,7 +210,6 @@
-
@@ -471,7 +470,7 @@ function buildConfig() { max_per_resolution: parseInt(document.getElementById("max_per_res").value) || 0, cached_only: document.getElementById("cache_mode").value === "cached", show_uncached: document.getElementById("cache_mode").value === "all", - show_p2p: document.getElementById("show_p2p").checked, + show_p2p: false, }, sort: sortOrder, language_order: langOrder, @@ -495,7 +494,7 @@ function update() { document.getElementById("urlBox").textContent = manifestUrl; const btn = document.getElementById("installBtn"); - const valid = cfg.debrids.length > 0 || cfg.filters.show_p2p; + const valid = cfg.debrids.length > 0; btn.classList.toggle("disabled", !valid); btn.href = valid ? `stremio://${host}/${encoded}/manifest.json` : "#"; window._manifestUrl = manifestUrl; @@ -540,7 +539,7 @@ function applyPrefill(cfg) { setVal("min_size", f.min_size_gb); setVal("max_size", f.max_size_gb); setVal("max_results", f.max_results); setVal("max_per_res", f.max_per_resolution); setChk("exclude_cam", f.exclude_cam); setChk("exclude_packs", f.exclude_season_packs); - setVal("cache_mode", f.cached_only ? "cached" : "all"); setChk("show_p2p", f.show_p2p); + setVal("cache_mode", f.cached_only ? "cached" : "all"); } function applyPrefillCheckboxes(cfg) { @@ -579,7 +578,7 @@ renderSortable("provOrder", provOrder, k => SOURCE_LABELS[k] || k); applyPrefillCheckboxes(PREFILL); ["tmdb_key","stremthru_url","stremthru_auth","abn_user","abn_pass","debrid_mode", "min_size","max_size","max_results","max_per_res","exclude_cam","exclude_packs", - "cache_mode","show_p2p"].forEach(id => { + "cache_mode"].forEach(id => { const el = document.getElementById(id); el.addEventListener("input", update); el.addEventListener("change", update);