diff options
author | Johnny Tong <mailbox@johnnytong.com> | 2015-06-01 01:11:55 +0300 |
---|---|---|
committer | Johnny Tong <mailbox@johnnytong.com> | 2015-06-01 01:11:55 +0300 |
commit | 27a2d7d9ed08932a64961500acf3f28ff976eb6b (patch) | |
tree | feb6c86d2604f10bc950dc18fcc1fcd37d9592bd /bin/cmd.js | |
parent | 8c3518a658c2d79f6ccf3223a89607a5313765fb (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-x | bin/cmd.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) + '}' + |