From 487b871bceea3b31e8079526449ff778d4b3ae28 Mon Sep 17 00:00:00 2001
From: wipedlifepotato <60944239+wipedlifepotato@users.noreply.github.com>
Date: Fri, 28 Aug 2026 02:21:56 +0300
Subject: [PATCH 1/5] feat: eta, total-size, fix percent for 0-1 range
---
contrib/webconsole/torrent-rpc.js | 2 +-
contrib/webconsole/torrent_client.html | 586 ++++---------------------
2 files changed, 93 insertions(+), 495 deletions(-)
diff --git a/contrib/webconsole/torrent-rpc.js b/contrib/webconsole/torrent-rpc.js
index c6424089..0d9b5da9 100644
--- a/contrib/webconsole/torrent-rpc.js
+++ b/contrib/webconsole/torrent-rpc.js
@@ -56,7 +56,7 @@ class TorrentClient {
method: "POST",
body: JSON.stringify({
'method': 'torrent-get',
- 'arguments': { "fields": ["id", "name", "status", "rateDownload", "rateUpload", "totalSize", "percentDone", "files", "peers"] }
+ 'arguments': { "fields": ["id", "name", "status", "rateDownload", "rateUpload", "totalSize", "percentDone", "files", "peers", "trackers"] }
}),
headers: { 'Content-Type': 'application/json' }
});
diff --git a/contrib/webconsole/torrent_client.html b/contrib/webconsole/torrent_client.html
index b8da12df..97f0dc75 100644
--- a/contrib/webconsole/torrent_client.html
+++ b/contrib/webconsole/torrent_client.html
@@ -1,520 +1,118 @@
-
-
-
-
-
-
-
- [+] DROP_TORRENT_PAYLOAD_OR_BROWSE_FILE
-
-
-
-
-
-
-
- | ID |
- Name |
- Status |
- Progress |
- Download Rate |
- Upload Rate |
- Actions |
-
-
-
-
- | NO_ACTIVE_TRANSFERS_DETECTED |
-
-
-
-
+
+
-
-
-
-
-
-
-
Files Manifest
-
-
-
-
- | File Name |
- Size |
- Completed |
- Progress |
-
-
-
-
-
-
-
-
Active Nodes / Peers (0)
-
-
-
-
- | Address |
- Client |
- Port |
- Downloading |
- Speed |
-
-
-
-
-
-
-
-
+
+
+
Files:
+
+
Peers (0):
+
+
Trackers (0):
+
+
+
From cf965b6d71938965021c4a4d32df1b986c27fa22 Mon Sep 17 00:00:00 2001
From: wipedlifepotato <60944239+wipedlifepotato@users.noreply.github.com>
Date: Fri, 28 Aug 2026 02:23:53 +0300
Subject: [PATCH 2/5] hacker mode js client torrent webconsole
---
contrib/webconsole/torrent_client_hacker.html | 521 ++++++++++++++++++
1 file changed, 521 insertions(+)
create mode 100644 contrib/webconsole/torrent_client_hacker.html
diff --git a/contrib/webconsole/torrent_client_hacker.html b/contrib/webconsole/torrent_client_hacker.html
new file mode 100644
index 00000000..32408a56
--- /dev/null
+++ b/contrib/webconsole/torrent_client_hacker.html
@@ -0,0 +1,521 @@
+
+
+
+
+
+
+
+ [+] DROP_TORRENT_PAYLOAD_OR_BROWSE_FILE
+
+
+
+
+
+
+
+ | ID |
+ Name |
+ Status |
+ Progress |
+ Download Rate |
+ Upload Rate |
+ Actions |
+
+
+
+
+ | NO_ACTIVE_TRANSFERS_DETECTED |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Files Manifest
+
+
+
+
+ | File Name |
+ Size |
+ Completed |
+ Progress |
+
+
+
+
+
+
+
+
Active Nodes / Peers (0)
+
+
+
+
+ | Address |
+ Client |
+ Port |
+ Downloading |
+ Speed |
+
+
+
+
+
+
+
+
+
+
+
+
From 10265c98363b82e4fe0d12a580fd122a507e102d Mon Sep 17 00:00:00 2001
From: wipedlifepotato <60944239+wipedlifepotato@users.noreply.github.com>
Date: Fri, 28 Aug 2026 02:25:33 +0300
Subject: [PATCH 3/5] no speed if not downloads
---
contrib/webconsole/torrent_client.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/webconsole/torrent_client.html b/contrib/webconsole/torrent_client.html
index 97f0dc75..6a342212 100644
--- a/contrib/webconsole/torrent_client.html
+++ b/contrib/webconsole/torrent_client.html
@@ -47,7 +47,7 @@
const speedUp = window.tjs.formatBytes ? window.tjs.formatBytes(el.rateUpload) : `${el.rateUpload} B/s`;
const status = window.tjs.getStatusString ? window.tjs.getStatusString(el.status) : el.status;
const totalSize = el.totalSize; // bytes
- let ETA = el.rateDownload ? (totalSize-(totalSize*el.percentDone)/el.rateDownload)/60.0 + "min" : 'downloaded'; // minutes
+ let ETA = el.rateDownload ? (totalSize-(totalSize*el.percentDone)/el.rateDownload)/60.0 + "min" : '-'; // minutes
const name = el.name || '|unknown name, maybe a bad torrent|';
return `
From 5c5856b5d2ed9c73f23113db6db2abdbf4945502 Mon Sep 17 00:00:00 2001
From: wipedlifepotato <60944239+wipedlifepotato@users.noreply.github.com>
Date: Fri, 28 Aug 2026 02:27:49 +0300
Subject: [PATCH 4/5] fix: eta
---
contrib/webconsole/torrent_client.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/webconsole/torrent_client.html b/contrib/webconsole/torrent_client.html
index 6a342212..1ecbb159 100644
--- a/contrib/webconsole/torrent_client.html
+++ b/contrib/webconsole/torrent_client.html
@@ -47,7 +47,7 @@
const speedUp = window.tjs.formatBytes ? window.tjs.formatBytes(el.rateUpload) : `${el.rateUpload} B/s`;
const status = window.tjs.getStatusString ? window.tjs.getStatusString(el.status) : el.status;
const totalSize = el.totalSize; // bytes
- let ETA = el.rateDownload ? (totalSize-(totalSize*el.percentDone)/el.rateDownload)/60.0 + "min" : '-'; // minutes
+ const ETA = el.rateDownload ? (((totalSize * (1 - el.percentDone)) / el.rateDownload) / 60).toFixed(1) + " min" : "-";
const name = el.name || '|unknown name, maybe a bad torrent|';
return `
From 532f1926b4dbe188f23af9a6fcedcaece6746a04 Mon Sep 17 00:00:00 2001
From: wipedlifepotato <60944239+wipedlifepotato@users.noreply.github.com>
Date: Fri, 28 Aug 2026 02:44:24 +0300
Subject: [PATCH 5/5] update hacker
---
contrib/webconsole/torrent_client_hacker.html | 256 +++++++++++++++---
1 file changed, 214 insertions(+), 42 deletions(-)
diff --git a/contrib/webconsole/torrent_client_hacker.html b/contrib/webconsole/torrent_client_hacker.html
index 32408a56..32ef36c1 100644
--- a/contrib/webconsole/torrent_client_hacker.html
+++ b/contrib/webconsole/torrent_client_hacker.html
@@ -1,4 +1,45 @@