Stopped completed torrents for doing GET for updated data

This commit is contained in:
William Mantly 2024-01-07 01:46:28 -05:00
parent bbcd955f28
commit ffa0f07daf

View File

@ -390,7 +390,7 @@
app.torrent.list(function(err, data){ app.torrent.list(function(err, data){
for(let torrent of data.results){ for(let torrent of data.results){
$.scope.tbp_proxy_torrent_dialog_torrents.push(app.torrent.parseTorrnetItem(torrent)) $.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)) $.scope.tbp_proxy_torrent_dialog_torrents.update('hashString', torrent.result.hashString, app.torrent.parseTorrnetItem(torrent.result))
} , torrent.hashString, true) } , torrent.hashString, true)
} }