From 16bb46fb55f80c6391040892b09b95c37a7f82b9 Mon Sep 17 00:00:00 2001 From: MasutaYunikon Date: Wed, 22 Apr 2026 13:56:50 +0200 Subject: [PATCH] feat: ajout du langage --- src/components/serie/SerieSeasonCard.vue | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/src/components/serie/SerieSeasonCard.vue b/src/components/serie/SerieSeasonCard.vue index 83073ea..d0c7215 100644 --- a/src/components/serie/SerieSeasonCard.vue +++ b/src/components/serie/SerieSeasonCard.vue @@ -143,6 +143,21 @@
{{ formatDate(ep.aired) }} {{ formatDuration(ep.duration) }} + + + πŸ‡―πŸ‡΅+πŸ‡«πŸ‡· + + + πŸ‡―πŸ‡΅STπŸ‡«πŸ‡· +
@@ -417,6 +432,22 @@ function epNeedsRename(ep: any): boolean { return !!expected && expected !== entry.dest_filename } +// ── DΓ©tection langue ─────────────────────────────────────────── +function epLang(ep: any): 'MULTI' | 'VOSTFR' | null { + const sources: string[] = [ + ep.formatted_name ?? '', + ep.torrent?.torrent_name ?? '', + ep.torrent?.raw ?? '', + ...((ep.torrents ?? []) as any[]).map((t: any) => `${t.torrent_name ?? ''} ${t.raw ?? ''}`), + ] + for (const s of sources) { + if (!s) continue + if (/\bMULTI\b/i.test(s)) return 'MULTI' + if (/\bVOSTFR\b/i.test(s)) return 'VOSTFR' + } + return null +} + function torrentLabel(torrent: any, index: number): string { if (torrent.torrent_name) return torrent.torrent_name const raw = torrent.raw ?? ''