@let item = selectedItem(); @if (selectedVodInfo(); as info) { @if (info.releasedate) { {{ info.releasedate | slice: 0 : 4 }} } @if (info.genre) { {{ info.genre }} } @if (info.duration) { {{ info.duration }} } @if (info.rating_imdb) { ⭐ {{ info.rating_imdb }} } @if (info.country) { {{ info.country }} } @if (info.actors || info.cast || info.tmdb_cast?.length) { {{ 'XTREAM.ACTORS' | translate }} @if (info.tmdb_cast?.length) { @for (member of info.tmdb_cast; track member.tmdbPersonId ? 'p' + member.tmdbPersonId : 'i' + $index) { @if (member.profileUrl) { } @else { {{ member.name.charAt(0) }} } {{ member.name }} } } @else { {{ info.actors || info.cast }} } } @if (info.director || info.tmdb_directors?.length) { {{ 'XTREAM.DIRECTOR' | translate }} @if (info.tmdb_directors?.length) { @for (member of info.tmdb_directors; track member.tmdbPersonId ? 'p' + member.tmdbPersonId : 'i' + $index) { @if (member.profileUrl) { } @else { {{ member.name.charAt(0) }} } {{ member.name }} } } @else { {{ info.director }} } } @if (info.rating_kinopoisk) { {{ 'XTREAM.KINOPOISK_RATING' | translate }} {{ info.rating_kinopoisk }} } @if (hasPlaybackPosition()) { {{ externalPrimaryIcon() }} @if (externalPrimaryLabel(); as label) { {{ label }} } @else { {{ 'XTREAM.RESUME' | translate }} {{ formatPosition() }} } @if (!isExternalStopAction()) { replay {{ 'XTREAM.RESTART' | translate }} } } @else { {{ externalPrimaryIcon() }} @if (externalPrimaryLabel(); as label) { {{ label }} } @else { {{ 'XTREAM.PLAY' | translate }} } } @if (!isFavorite()) { add {{ 'PORTALS.ADD_TO_FAVORITES' | translate }} } @else { check {{ 'PORTALS.REMOVE_FROM_FAVORITES' | translate }} } @if (isElectron()) { @if (isDownloaded()) { play_circle {{ 'DOWNLOADS.PLAY_LOCAL' | translate }} } @else if (isPausedDownload()) { play_arrow {{ 'DOWNLOADS.RESUME' | translate }} } @else if (isDownloading()) { downloading {{ 'DOWNLOADS.STATUS.DOWNLOADING' | translate }} } @else { download {{ 'DOWNLOADS.DOWNLOAD' | translate }} } } @if (inlinePlayback(); as playback) { } @if (trailerEmbedUrl(); as trailerUrl) { {{ 'XTREAM.YOUTUBE_TRAILER' | translate }} } @if (similarItems().length || similarInPortals().length) { {{ 'XTREAM.SIMILAR' | translate }} @for (item of similarItems(); track item.id) { @if (item.posterUrl) { } @else { {{ item.title.charAt(0) }} } {{ item.title }} } @for ( item of similarInPortals(); track 'x' + item.match.playlistId + '-' + item.match.xtreamId ) { @if (item.posterUrl) { } @else { {{ item.title.charAt(0) }} } {{ item.title }} {{ item.match.playlistName }} } } } @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 }} } {{ 'XTREAM.DETAIL_FALLBACK.NOTE' | translate }} @for (fact of fallback.facts; track fact.labelKey) { {{ fact.labelKey | translate }} {{ fact.value }} } } @else if (detailsError()) { } @else { }