Pour toi : fallback sans Sonarr et amorçage sans historique

- Sans Sonarr, les séries/films téléchargés donnent leurs genres via leur
  fiche French-Stream (page_url des téléchargements), convertis vers les
  catégories Kitsu (mapping FR→EN ; genres sans équivalent ignorés)
- Aucun historique (ni téléchargement, ni favori, ni Sonarr) : réponse
  cold_start non cachée → carte d'amorçage « téléchargez un premier titre »
- Fin de téléchargement → invalidation immédiate des recommandations
- genres_of_page ignore les fiches hors French-Stream (URLs d'animés)
This commit is contained in:
Roman
2026-09-25 15:14:14 +00:00
parent c45f1b79fd
commit d5fa546dd7
7 changed files with 174 additions and 12 deletions
+28
View File
@@ -570,6 +570,34 @@ button { font-family: inherit; }
}
.explore-skel .rail-skel { margin-top: 0.2rem; }
/* CTA d'amorçage « Pour toi » (aucun historique) */
.cta-card {
display: flex; align-items: center; gap: 1.6rem;
background: var(--surface); border: 1px solid var(--border);
border-radius: 14px; padding: 1.6rem 1.8rem;
}
.cta-emoji { font-size: 2.6rem; }
.cta-body { display: flex; flex-direction: column; gap: 0.4rem; }
.cta-title { font-weight: 700; font-size: 1.05rem; }
.cta-body p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }
.cta-actions { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.cta-btn {
background: var(--accent); color: #fff; border: none; border-radius: 8px;
font: inherit; font-size: 0.88rem; font-weight: 600;
padding: 0.5rem 1rem; cursor: pointer; text-decoration: none;
transition: filter 0.15s;
}
.cta-btn:hover { filter: brightness(1.12); }
.cta-btn.ghost {
background: transparent; color: var(--text);
border: 1px solid var(--border);
}
.cta-btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }
@media (max-width: 640px) {
.cta-card { flex-direction: column; text-align: center; }
.cta-actions { justify-content: center; flex-wrap: wrap; }
}
.rail-title {
font-size: 1.15rem;
font-weight: 700;