From efcaea314cf02d3dd79dfaf81b15b792bf654bde Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Tue, 16 Jun 2026 19:11:40 -0700 Subject: [PATCH] Wishlist TV: fix episode cast 404 (season number was undefined in URL) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit query_wishlist episodes carry episode_number but not season_number (it lives on the season), so the guest-cast fetch hit /episode//undefined/ -> 404 and the S·E eyebrow read 'S undefined'. findEpisode now stamps season_number onto the selected episode. --- webui/static/video/video-wishlist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webui/static/video/video-wishlist.js b/webui/static/video/video-wishlist.js index 26966d8f..bd3a8eb5 100644 --- a/webui/static/video/video-wishlist.js +++ b/webui/static/video/video-wishlist.js @@ -133,7 +133,9 @@ function findEpisode(tmdb, sNum, eNum) { var sh = state.showData[tmdb], ep = null; if (sh) (sh.seasons || []).forEach(function (se) { - if (se.season_number === sNum) (se.episodes || []).forEach(function (x) { if (x.episode_number === eNum) ep = x; }); + if (se.season_number === sNum) (se.episodes || []).forEach(function (x) { + if (x.episode_number === eNum) { ep = x; ep.season_number = sNum; } // episodes don't carry their season # + }); }); return ep; }