Skip to content

Commit

Permalink
Added peers to interface. Upped maximum amount of connections per see…
Browse files Browse the repository at this point in the history
…d to 100. Updated to latest WebTorrent release.
  • Loading branch information
WouterJansen committed May 2, 2020
1 parent 2cd870c commit 2422de6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ $(() => {
$('#torrent-pause').css('color', 'white');
$('#torrent-start').css('color', '#5a5757');
getTorrentURL(function(torrent_url){
client.add(torrent_url, {path: getDownloadStoragePath()}, onTorrent);
client.add(torrent_url, {path: getDownloadStoragePath(), maxWebConns: 200});
});
paused = false;
$('#progress-information-time').text('Verifying Files...');
Expand Down Expand Up @@ -139,7 +139,7 @@ $(() => {
round: true,
largest: 2
}) + ' remaining');
$('#progress-information-speed').text(prettyBytes(client.downloadSpeed) + '/s');
$('#progress-information-speed').text(prettyBytes(client.downloadSpeed) + '/s from ' + torrent.numPeers + ' peers');
}
}else{
clearInterval(interval);
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{
"name": "PRBF2-Download-Assistant",
"version": "1.2.1",
"version": "1.2.2",
"description": "Download tool for PR:BF2",
"main": "./app/main.js",
"dependencies": {
"humanize-duration": "latest",
"pretty-bytes": "latest",
"webtorrent": "^0.101.0"
"webtorrent": "^0.108.1"
},
"scripts": {
"start": "electron .",
"dist": "build"
},
"author": "Wouter Jansen",
"author": "Project Reality",
"build": {
"appId": "PRBF2-Download-Assistant",
"win": {
"target": [
{
"target": "portable",
"arch":["ia32"]
"arch": [
"ia32"
]
}
],
"icon": "/app/assets/icons/ico/icon.ico"
Expand Down

0 comments on commit 2422de6

Please sign in to comment.