update webtorrent preview container

This commit is contained in:
twisterarmy 2024-06-03 07:17:25 +03:00
parent 9f17b2ac46
commit 424e08f2ae

View File

@ -1309,7 +1309,7 @@ function _startTorrentDownloadAndPreview(torrentId, previewContainer, isMedia) {
torrent = WebTorrentClient.add(torrentId);
previewContainer.empty();
var speedStatus = $('<span class="post-text"/>');
var speedStatus = $('<p/>');
previewContainer.append(speedStatus);
function updateSpeed () {
var progress = (100 * torrent.progress).toFixed(1)