From ffa0f07daf247dfbc9e3dfcb3e14a229bfe40457 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Sun, 7 Jan 2024 01:46:28 -0500 Subject: [PATCH] Stopped completed torrents for doing GET for updated data --- public/partial/header.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/partial/header.html b/public/partial/header.html index 4a2a810..9c8c5b1 100644 --- a/public/partial/header.html +++ b/public/partial/header.html @@ -390,7 +390,7 @@ app.torrent.list(function(err, data){ for(let torrent of data.results){ $.scope.tbp_proxy_torrent_dialog_torrents.push(app.torrent.parseTorrnetItem(torrent)) - app.torrent.get(function(error, torrent){ + if(torrent.percentDone !== 1) app.torrent.get(function(error, torrent){ $.scope.tbp_proxy_torrent_dialog_torrents.update('hashString', torrent.result.hashString, app.torrent.parseTorrnetItem(torrent.result)) } , torrent.hashString, true) } -- 2.34.1