feat: section disponibles au téléchargement + fix nommage import
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 43s

- Endpoint GET /download-detection/latest-found : résultats "found" du
  dernier job de détection par bibliothèque
- Section dans la page Téléchargements avec les releases disponibles
  groupées par bibliothèque, bouton qBittorrent intégré
- Fix nommage import : exclut les volumes importés de la recherche de
  référence (évite le cercle vicieux vol 8 → ref vol 8 → même nom)
- Fix extraction volumes : gère "Tome.007" (point après préfixe) en
  plus de "Tome 007" dans extract_volumes_from_title
- Fallback disque pour la référence de nommage quand la DB ne matche pas
- Logging détaillé du processus d'import pour debug

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 22:38:31 +01:00
parent 888db484fb
commit 32078c715a
10 changed files with 303 additions and 15 deletions

View File

@@ -1184,6 +1184,14 @@ export type DownloadDetectionResultDto = {
error_message: string | null;
};
export type LatestFoundPerLibraryDto = {
library_id: string;
library_name: string;
job_id: string;
job_date: string;
results: DownloadDetectionResultDto[];
};
export async function getDownloadDetectionReport(jobId: string) {
return apiFetch<DownloadDetectionReportDto>(`/download-detection/${jobId}/report`);
}

View File

@@ -902,6 +902,11 @@ const en: Record<TranslationKey, string> = {
"downloads.cancel": "Cancel download",
"downloads.confirmDelete": "Delete this download?",
"downloads.confirmCancel": "Cancel this download? The torrent will also be removed from qBittorrent.",
"downloads.availableTitle": "Available for download",
"downloads.detectedSeries": "{{count}} series detected",
"downloads.missing": "missing",
"downloads.showMore": "Show {{count}} more…",
"downloads.showLess": "Show less",
// Settings - Torrent Import
"settings.torrentImport": "Auto import",

View File

@@ -900,6 +900,11 @@ const fr = {
"downloads.cancel": "Annuler le téléchargement",
"downloads.confirmDelete": "Supprimer ce téléchargement ?",
"downloads.confirmCancel": "Annuler ce téléchargement ? Le torrent sera aussi supprimé de qBittorrent.",
"downloads.availableTitle": "Disponibles au téléchargement",
"downloads.detectedSeries": "{{count}} séries détectées",
"downloads.missing": "manquant(s)",
"downloads.showMore": "Voir {{count}} de plus…",
"downloads.showLess": "Réduire",
// Settings - Torrent Import
"settings.torrentImport": "Import automatique",