@let playableItem = playableVodItem();
@if (playableItem || isDownloaded()) {
@let primary = hero.primaryAction();
@if (trailerEmbedUrl()) {
}
@if (playableItem) {
@if (isElectron() && !providerOnly()) {
@if (isDownloaded()) {
@if (externalPrimaryButtonState() === 'idle') {
}
} @else if (isDownloading()) {
@let downloadLabel =
isPausedDownload()
? ('DOWNLOADS.RESUME' | translate)
: downloadPercent() !== null
? ('DOWNLOADS.DOWNLOADING_PERCENT'
| translate: { percent: downloadPercent() })
: ('DOWNLOADS.STATUS.DOWNLOADING' | translate);
@if (isPausedDownload()) {
play_arrow
}
} @else {
}
}
}
}
@if (activeSourceCaption(); as caption) {
{{ 'PORTALS.MULTI_SOURCE.PLAYING_FROM' | translate }}
{{ caption.source }}
@if (multiSource.hasAlternatives()) {
}
}
@if (selectedVodInfo()?.rating_kinopoisk; as kinopoisk) {
{{
'XTREAM.KINOPOISK_RATING' | translate
}}
{{ kinopoisk }}
}
@if (playableVodItem()) {
@if (inlinePlayback(); as playback) {
}
}
@let item = selectedItem();
@if (selectedVodInfo(); as info) {
@if (info.releasedate) {
@if (discover.canOpenYear(info.releasedate)) {
} @else {
{{
discover.yearLabel(info.releasedate) ??
(info.releasedate | slice: 0 : 4)
}}
}
}
@if (hero.durationLabel(); as duration) {
{{ duration }}
}
@if (hero.genreChips().length) {
@for (genre of hero.genreChips(); track genre.label) {
@if (!$first) {
·
}
@if (genre.facet; as facet) {
} @else {
{{ genre.label }}
}
}
}
@for (country of hero.countryChips(); track country.label) {
@if (country.facet; as facet) {
} @else {
{{ country.label }}
}
}
@if (info.rating_imdb) {
★ {{ info.rating_imdb }}
}
@if (isDownloaded()) {
{{ 'DOWNLOADS.OFFLINE' | translate }}
}
} @else if (fallbackView(); as fallback) {
{{ 'XTREAM.DETAIL_FALLBACK.STATUS' | translate }}
@if (fallback.year) {
{{ fallback.year }}
}
@if (fallback.rating) {
★ {{ fallback.rating }}
}
@if (fallback.added) {
{{ fallback.added }}
}
@if (fallback.format) {
{{ fallback.format }}
}
@if (isDownloaded()) {
{{ 'DOWNLOADS.OFFLINE' | translate }}
}
{{ 'XTREAM.DETAIL_FALLBACK.NOTE' | translate }}
@for (fact of fallback.facts; track fact.labelKey) {
{{ fact.labelKey | translate }}
{{ fact.value }}
}
} @else if (detailsError()) {
} @else {
}