From c945458a81e96572ab568370c9ad8f85e10a394b Mon Sep 17 00:00:00 2001 From: wisecolt Date: Sun, 11 Jan 2026 14:45:45 +0300 Subject: [PATCH] =?UTF-8?q?fix(server):=20seri=20verisi=20i=C3=A7in=20aday?= =?UTF-8?q?=20anahtar=20kontrol=C3=BC=20ekle.=20TV=20Shows=20da=20dizi=20b?= =?UTF-8?q?=C3=B6l=C3=BCmlerinin=20tamam=C4=B1n=C4=B1n=20listelenmesini=20?= =?UTF-8?q?sa=C4=9Fla.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ensureSeriesData fonksiyonuna, veri bulunamadığında candidateKeys listesini kullanarak alternatif dosya yollarının kontrol edilmesi ve ilgili metadatanın yüklenmesi sağlandı. --- client/src/routes/TvShows.svelte | 18 +++++++++--------- server/server.js | 16 ++++++++++++++++ 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/client/src/routes/TvShows.svelte b/client/src/routes/TvShows.svelte index e7f836c..c7ec6c4 100644 --- a/client/src/routes/TvShows.svelte +++ b/client/src/routes/TvShows.svelte @@ -1184,7 +1184,7 @@ async function openVideoAtIndex(index) { .tv-overlay-content { position: relative; width: min(1040px, 94vw); - max-height: 90vh; + max-height: 95vh; border-radius: 20px; overflow: hidden; background: rgba(12, 12, 12, 0.5); @@ -1222,7 +1222,7 @@ async function openVideoAtIndex(index) { } .detail-poster { - flex: 0 0 230px; + flex: 0 0 183px; } .detail-poster-img { @@ -1363,7 +1363,7 @@ async function openVideoAtIndex(index) { display: flex; flex-direction: column; gap: 14px; - max-height: 260px; + max-height: 520px; overflow-y: auto; padding-right: 6px; padding-left: 2px; @@ -1691,11 +1691,11 @@ async function openVideoAtIndex(index) { } .detail-poster { - flex: 0 0 200px; + flex: 0 0 72px; } .episode-list { - max-height: 240px; + max-height: 440px; } } @@ -1716,7 +1716,7 @@ async function openVideoAtIndex(index) { } .detail-poster { - flex: 0 0 160px; + flex: 0 0 58px; } .detail-title { @@ -1732,7 +1732,7 @@ async function openVideoAtIndex(index) { } .episode-list { - max-height: 200px; + max-height: 360px; gap: 12px; } @@ -1789,7 +1789,7 @@ async function openVideoAtIndex(index) { } .detail-poster { - flex: 0 0 120px; + flex: 0 0 43px; } .detail-title { @@ -1817,7 +1817,7 @@ async function openVideoAtIndex(index) { } .episode-list { - max-height: 180px; + max-height: 320px; gap: 10px; } diff --git a/server/server.js b/server/server.js index 9923d07..a37bb75 100644 --- a/server/server.js +++ b/server/server.js @@ -2998,6 +2998,22 @@ async function ensureSeriesData( } } + if (!seriesData && candidateKeys.length) { + for (const key of candidateKeys) { + const candidatePaths = tvSeriesPathsByKey(key); + if (!fs.existsSync(candidatePaths.metadata)) continue; + try { + seriesData = JSON.parse(fs.readFileSync(candidatePaths.metadata, "utf-8")) || {}; + existingPaths = candidatePaths; + break; + } catch (err) { + console.warn( + `⚠️ series.json okunamadı (${candidatePaths.metadata}): ${err.message}` + ); + } + } + } + const legacyPaths = tvSeriesPaths(normalizedRoot); if (!seriesData && fs.existsSync(legacyPaths.metadata)) { try {