mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Fix Season section header for flattened shows to display correct Season name if it's not Season 1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user