{{ 'PORTALS.DETAIL.EPISODES' | translate }}

@if (hasSeasons()) { @if (selectedSeasonEpisodes().length; as count) { {{ (count === 1 ? 'PORTALS.EPISODE_COUNT_ONE' : 'PORTALS.EPISODE_COUNT_OTHER' ) | translate: { count } }} } } @if (hasSeasons() && !showSeasonEmptyState()) {
grid_view view_list
}
@if ( hasSeasons() && (selectedSeasonPosterUrl() || selectedSeasonDescription()) ) {
@if (selectedSeasonPosterUrl(); as posterUrl) { } @if (selectedSeasonDescription(); as description) { }
}
@if (isLoading()) {
} @else if (showSeriesEmptyState()) {

{{ 'PORTALS.NO_EPISODES_AVAILABLE' | translate }}

{{ 'PORTALS.NO_EPISODES_AVAILABLE_MESSAGE' | translate }}

} @else if (showSeasonEmptyState()) {

{{ 'PORTALS.SEASON_EMPTY' | translate }}

{{ 'PORTALS.SEASON_EMPTY_MESSAGE' | translate }}

} @else { @if (viewMode() === 'grid') {
@for (episode of selectedSeasonEpisodes(); track $index) { @let episodeInfo = getEpisodeInfo(episode);
@if (episodeInfo?.movie_image) { Episode thumbnail } @else {
play_circle_outline
} @if (getEpisodeProgress(episode) > 0) { }
@if ( downloadPresenter.presentationVisible() ) { @let downloadRow = downloadPresenter.rowFor(episode); @let downloadState = downloadRow.presentation; }
@if (isEpisodeLaunching(episode)) { } @else { {{ isEpisodeActiveExternal( episode ) || isEpisodePlayingInline(episode) ? 'equalizer' : 'play_arrow' }} }

{{ episode.episode_num }}. {{ episode.title }}

@if (episodeInfo?.plot) { }
@if (episodeInfo?.plot) {

{{ episodeInfo?.plot }}

} @if (getEpisodeSubline(episode); as subline) { {{ subline }} }
}
} @else {
@for (episode of selectedSeasonEpisodes(); track $index) { @let episodeInfo = getEpisodeInfo(episode);
@if (listThumbnailsEnabled()) {
@if (episodeInfo?.movie_image) { Episode thumbnail } @else { play_circle_outline } {{ episode.episode_num }}
} @else {
{{ episode.episode_num }}
}

{{ episode.title }} @if (isEpisodeWatched(episode)) { check_circle }

@if (episodeInfo?.duration) { {{ episodeInfo?.duration }} } @if ( getEpisodePositionText(episode); as time ) { {{ time }} }
@if (episodeInfo?.plot) {

{{ episodeInfo?.plot }}

} @if (getEpisodeProgress(episode) > 0) {
}
@if (downloadPresenter.presentationVisible()) { @let downloadRow = downloadPresenter.rowFor(episode); @let downloadState = downloadRow.presentation; } @if (episodeInfo?.plot) { }
}
} }