{#if isDownloading}
Downloading: {progressPercent}% {:else if isDownloaded} ✓ Downloaded: {session.title} {:else if session.status === 'resolving'} Resolving URL… {:else if session.status === 'ready' && session.downloadStatus === 'downloading'} Starting download… {:else if session.downloadStatus === 'failed'} Download failed {:else} Ready {/if}