show sequential status and hopeless host count in plugin
This commit is contained in:
@ -104,8 +104,10 @@ public class DownloadServlet extends HttpServlet {
|
||||
sb.append("<Details>");
|
||||
sb.append("<Path>").append(Util.escapeHTMLinXML(downloader.getFile().getAbsolutePath())).append("</Path>");
|
||||
sb.append("<PieceSize>").append(downloader.getPieceSize()).append("</PieceSize>");
|
||||
sb.append("<Sequential>").append(downloader.isSequential()).append("</Sequential>");
|
||||
sb.append("<KnownSources>").append(downloader.getTotalWorkers()).append("</KnownSources>");
|
||||
sb.append("<ActiveSources>").append(downloader.activeWorkers()).append("</ActiveSources>");
|
||||
sb.append("<HopelessSources>").append(downloader.countHopelessSources()).append("</HopelessSources>");
|
||||
sb.append("<TotalPieces>").append(downloader.getNPieces()).append("</TotalPieces>");
|
||||
sb.append("<DonePieces>").append(downloader.donePieces()).append("</DonePieces>");
|
||||
sb.append("</Details>");
|
||||
|
@ -105,8 +105,10 @@ function updateDownloader(infoHash) {
|
||||
if (this.readyState == 4 && this.status == 200) {
|
||||
var path = this.responseXML.getElementsByTagName("Path")[0].childNodes[0].nodeValue
|
||||
var pieceSize = this.responseXML.getElementsByTagName("PieceSize")[0].childNodes[0].nodeValue
|
||||
var sequential = this.responseXML.getElementsByTagName("Sequential")[0].childNodes[0].nodeValue
|
||||
var knownSources = this.responseXML.getElementsByTagName("KnownSources")[0].childNodes[0].nodeValue
|
||||
var activeSources = this.responseXML.getElementsByTagName("ActiveSources")[0].childNodes[0].nodeValue
|
||||
var hopelessSources = this.responseXML.getElementsByTagName("HopelessSources")[0].childNodes[0].nodeValue
|
||||
var totalPieces = this.responseXML.getElementsByTagName("TotalPieces")[0].childNodes[0].nodeValue
|
||||
var donePieces = this.responseXML.getElementsByTagName("DonePieces")[0].childNodes[0].nodeValue
|
||||
|
||||
@ -116,6 +118,10 @@ function updateDownloader(infoHash) {
|
||||
html += "<td>" + "<p align='right'>" + path + "</p>" + "</td>"
|
||||
html += "</tr>"
|
||||
html += "<tr>"
|
||||
html += "<td>" + _t("Sequential") + "</td>"
|
||||
html += "<td>" + "<p align='right'>" + sequential + "</p>" + "</td>"
|
||||
html += "</tr>"
|
||||
html += "<tr>"
|
||||
html += "<td>" + _t("Known Sources") + "</td>"
|
||||
html += "<td>" + "<p align='right'>" + knownSources + "</p>" + "</td>"
|
||||
html += "</tr>"
|
||||
@ -124,6 +130,10 @@ function updateDownloader(infoHash) {
|
||||
html += "<td>" + "<p align='right'>" + activeSources + "</p>" + "</td>"
|
||||
html += "</tr>"
|
||||
html += "<tr>"
|
||||
html += "<td>" + _t("Hopeless Sources") + "</td>"
|
||||
html += "<td>" + "<p align='right'>" + hopelessSources + "</p>" + "</td>"
|
||||
html += "</tr>"
|
||||
html += "<tr>"
|
||||
html += "<td>" + _t("Piece Size") + "</td>"
|
||||
html += "<td>" + "<p align='right'>" + pieceSize + "</p>" + "</td>"
|
||||
html += "</tr>"
|
||||
|
Reference in New Issue
Block a user