Merge pull request #1168 from mrcanelas/fix/streams-list-episode-title
Some checks are pending
Build / build (push) Waiting to run

fix: improve episode title formatting in StreamsList component
This commit is contained in:
Timothy Z. 2026-03-23 17:15:14 +02:00 committed by GitHub
commit 74f1d660be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,7 +108,9 @@ const StreamsList = ({ className, video, type, onEpisodeSearch, ...props }) => {
<Icon className={styles['icon']} name={'chevron-back'} />
</Button>
<div className={styles['episode-title']}>
{`S${video?.season}E${video?.episode} ${(video?.title)}`}
{typeof video.season === 'number' && typeof video.episode === 'number'
? `S${video.season}E${video.episode}${video.title ? ` ${video.title}` : ''}`
: (video.title ?? '')}
</div>
</React.Fragment>
: