Stopped completed torrents for doing GET for updated data #5
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user