fix: le bouton rename n'apparait plus quand on utilise differents torrents entre les épisode

This commit is contained in:
MasutaYunikon committed 2026-05-07 00:41:50 +02:00
1 parent 260fd10bf0
commit 0d5d44a484
1 file changed
+1 -1
+1 -1
View File
@@ -147,7 +147,7 @@ router.get('/organized/:serieId', requireAuth, async (req, res) => {
if (typeof p !== 'object' || !p.infohash) continue
const hash = p.infohash.toLowerCase()
const entry = (organized[hash] ?? {})[String(ep.id)]
if (entry) { result[String(ep.id)] = entry; break }
if (entry) { result[String(ep.id)] = { ...entry, hash }; break }
}
if (!result[String(ep.id)] && organized['manual']?.[String(ep.id)]) {
result[String(ep.id)] = organized['manual'][String(ep.id)]