From 27a2d7d9ed08932a64961500acf3f28ff976eb6b Mon Sep 17 00:00:00 2001 From: Johnny Tong Date: Sun, 31 May 2015 18:11:55 -0400 Subject: [PATCH] Display info hash on commandline for seed option Fix webtorrent seed doesn't show info hash Fixes #330 --- bin/cmd.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/cmd.js b/bin/cmd.js index 4c9b3433..e99d4e92 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) + '}' +