mirror of
https://github.com/leoherzog/TorrentParts.git
synced 2026-01-24 04:08:04 -08:00
Update Modified Info When Files Are Fetched
This commit is contained in:
3
parse.js
3
parse.js
@@ -296,9 +296,9 @@ async function addCurrentTrackers() {
|
||||
let response = await fetch("https://newtrackon.com/api/100"); // get trackers with 100% uptime
|
||||
let trackers = await response.text();
|
||||
parsed.announce = parsed.announce.concat(trackers.split('\n\n'));
|
||||
parsed.announce = parsed.announce.filter((v,i) => v && parsed.announce.indexOf(v) === i); // remove duplicates and empties
|
||||
parsed.announce.push("http://bt1.archive.org:6969/announce");
|
||||
parsed.announce.push("http://bt2.archive.org:6969/announce");
|
||||
parsed.announce = parsed.announce.filter((v,i) => v && parsed.announce.indexOf(v) === i); // remove duplicates and empties
|
||||
updateModified();
|
||||
}
|
||||
catch(e) {
|
||||
@@ -347,6 +347,7 @@ function getFilesFromPeers() {
|
||||
parsed.length = torrent.length;
|
||||
parsed.lastPieceLength = torrent.lastPieceLength;
|
||||
getFiles.innerHTML = '<span class="fad fa-chart-network"></span>';
|
||||
updateModified();
|
||||
display();
|
||||
torrent.destroy();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user