Merge pull request 'Stopped completed torrents for doing GET for updated data' (#5) from sql into master

Reviewed-on: #5
This commit is contained in:
William Mantly 2024-01-07 06:47:20 +00:00
commit 49fd73aaf9

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)
} }