{{ 'DOWNLOADS.TITLE' | translate }}

@if (activeCount() > 0) { {{ activeCount() }} }
@if (isAvailable()) {
folder_open {{ downloadFolder() || ('DOWNLOADS.NO_FOLDER' | translate) }}
@if (hasClearableDownloads()) { } }
@if (!isAvailable()) {
desktop_access_disabled

{{ 'DOWNLOADS.NOT_AVAILABLE' | translate }}

{{ 'DOWNLOADS.DESKTOP_ONLY' | translate }}
} @else if (!playlistsLoaded()) {

{{ 'CHANNELS.LOADING' | translate }}

} @else if (hasNoPlaylists()) { } @else if (showDownloadSkeleton()) {

{{ 'CHANNELS.LOADING' | translate }}

} @else if (!hasScopedDownloads()) { } @else if (filteredDownloads().length === 0) {
search_off

{{ 'DOWNLOADS.NO_FILTER_MATCH' | translate }}

{{ 'DOWNLOADS.NO_FILTER_MATCH_HINT' | translate }}
} @else {
@for (item of filteredDownloads(); track item.id) {
@if (hasPoster(item)) { } @else { {{ getPosterPlaceholderIcon(item) }} }
{{ item.title }} @if (item.contentType === 'episode') { {{ formatEpisodeLabel(item) }} }
{{ getStatusIcon(item.status) }} {{ 'DOWNLOADS.STATUS.' + item.status.toUpperCase() | translate }} @if ( item.status === 'downloading' || item.status === 'completed' ) { {{ formatBytes( item.bytesDownloaded ) }} @if (item.totalBytes) { / {{ formatBytes(item.totalBytes) }} } } @if (item.errorMessage) { {{ item.errorMessage }} }
@if (item.status === 'downloading') { }
@switch (item.status) { @case ('queued') { } @case ('downloading') { } @case ('completed') { } @case ('failed') { } @case ('canceled') { } }
}
}