Fix Season section header for flattened shows to display correct Season name if it's not Season 1

This commit is contained in:
HighImKevin
2025-11-27 04:37:28 -05:00
parent c0787e950a
commit 7d1290f9c7
+3 -1
View File
@@ -189,10 +189,12 @@
nextUpSection.style.display = 'none';
}
const seasonName = episodes[0]?.SeasonName || `Season ${episodes[0]?.ParentIndexNumber}`;
// Render Season 1 section using renderCards (default behavior)
const seasonSection = window.cardBuilder.renderCards(
episodes,
'Season 1',
`${seasonName}`,
viewMoreUrl,
true, // overflowCard
null // cardFormat (use default)