Add Piece Size and Length

This commit is contained in:
Leo
2022-08-02 13:15:00 +00:00
committed by GitHub
parent 013318d258
commit b1794f000b
4 changed files with 18 additions and 1 deletions

View File

@@ -62893,6 +62893,7 @@ var announce = document.getElementById('announce');
var urlList = document.getElementById('urlList');
var addWebseed = document.getElementById('addWebseed');
var removeWebseeds = document.getElementById('removeWebseeds');
var pieces = document.getElementById('pieces');
var files = document.getElementById('filesBody');
var getFiles = document.getElementById('getFiles');
var copyURL = document.getElementById('copyURL');
@@ -63114,6 +63115,7 @@ function display() {
}
createdBy.value = parsed.createdBy ? ' by ' + parsed.createdBy : '';
comment.value = parsed.comment ? parsed.comment : '';
pieces.value = parsed.pieces ? parsed.pieces.length.toLocaleString() + ' ' + bytes.format(parsed.pieceLength, {"decimalPlaces": 1, "unitSeparator": " "}) + ' pieces (last piece ' + bytes.format(parsed.lastPieceLength, {"decimalPlaces": 1, "unitSeparator": " "}) + ')' : '';
announce.innerHTML = '';
if (parsed.announce && parsed.announce.length) {