diff --git a/app/download.js b/app/download.js index de441f9..23de8c1 100644 --- a/app/download.js +++ b/app/download.js @@ -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...'); @@ -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); diff --git a/package.json b/package.json index c695e78..366f8e4 100644 --- a/package.json +++ b/package.json @@ -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"