dispatch('openPlayer', torrent)}>
- play_arrow
-
- `
- ]
-
- return hx`${elements}
`
-}
-
-// Renders the torrent name and download progress
-function renderTorrentMetadata (torrent) {
- var progress = Math.floor(100 * torrent.progress)
- var downloaded = prettyBytes(torrent.downloaded)
- var total = prettyBytes(torrent.length || 0)
-
- if (downloaded !== total) downloaded += ` / ${total}`
-
return hx`
-