Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Tong <mailbox@johnnytong.com>2015-06-01 01:11:55 +0300
committerJohnny Tong <mailbox@johnnytong.com>2015-06-01 01:11:55 +0300
commit27a2d7d9ed08932a64961500acf3f28ff976eb6b (patch)
treefeb6c86d2604f10bc950dc18fcc1fcd37d9592bd /bin/cmd.js
parent8c3518a658c2d79f6ccf3223a89607a5313765fb (diff)
Display info hash on commandline for seed option
Fix webtorrent seed doesn't show info hash Fixes #330
Diffstat (limited to 'bin/cmd.js')
-rwxr-xr-xbin/cmd.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 4c9b343..e99d4e9 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -483,7 +483,10 @@ function drawTorrent (torrent) {
'{green:' + (seeding ? 'seeding' : 'downloading') + ':} ' +
'{bold:' + torrent.name + '}'
)
- if (seeding) clivas.line('{green:magnet uri:} ' + torrent.magnetURI)
+ if (seeding) {
+ clivas.line('{green:magnet uri:} ' + torrent.magnetURI)
+ clivas.line('{green:info hash:} ' + torrent.infoHash)
+ }
clivas.line(
'{green:speed: }{bold:' + prettyBytes(speed) + '/s} ' +
'{green:downloaded:} {bold:' + prettyBytes(torrent.swarm.downloaded) + '}' +