webtorrent-cli icon indicating copy to clipboard operation
webtorrent-cli copied to clipboard

Display multiple torrents

Open br3ndonland opened this issue 3 years ago • 6 comments

What version of this package are you using? 4.0.3

What problem do you want to solve? Display info about multiple torrents

What do you think is the correct solution to this problem? Display each torrent being downloaded or seeded

Are you willing to submit a pull request to implement this change? Yeah, could totally take a stab at it

Description

Thanks for WebTorrent! :sparkling_heart:

webtorrent-cli can download multiple torrents by passing multiple filepaths or magnet links as arguments, like webtorrent download *.torrent. This multi-torrent support is helpful.

When more than one torrent is specified, webtorrent-cli automatically enables quiet mode (equivalent to the --quiet flag):

https://github.com/webtorrent/webtorrent-cli/blob/bbbe6ef6bdb033178c2615e3d36703a3afd970f7/bin/cmd.js#L831-L839

This means the user is unable to see the status of any of the torrents.

Suggestions

It would be great to have a compact display of each torrent being downloaded or seeded.

I would propose something like this:

  • Display each torrent in 1-2 lines, with select metadata:
    • name
    • download speed and size
    • upload speed and size
    • peers
  • When the number of torrents exceeds the height of the terminal window, abbreviate the list like ... and <n> more (the current behavior for displaying peers)

It might look like this:

Example of webtorrent-cli multi-torrent display in a terminal, made with carbon.now.sh

It's probably a good idea to support the --quiet flag, in case users want to preserve the existing behavior.

Related

  • webtorrent/webtorrent-cli#20
  • webtorrent/webtorrent-cli#21
  • webtorrent/webtorrent-cli#81
  • webtorrent/webtorrent-cli#177

Torrents from screenshot:

br3ndonland avatar Feb 05 '22 20:02 br3ndonland

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

github-actions[bot] avatar Apr 07 '22 12:04 github-actions[bot]

This would be great! happy to review a PR :)

DiegoRBaquero avatar Apr 07 '22 14:04 DiegoRBaquero

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

github-actions[bot] avatar Jun 08 '22 12:06 github-actions[bot]

yes #240

br3ndonland avatar Jun 09 '22 21:06 br3ndonland

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

github-actions[bot] avatar Aug 10 '22 12:08 github-actions[bot]

yes #240

br3ndonland avatar Aug 11 '22 16:08 br3ndonland

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

github-actions[bot] avatar Oct 11 '22 12:10 github-actions[bot]

yes #240

br3ndonland avatar Oct 11 '22 18:10 br3ndonland

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

github-actions[bot] avatar Dec 12 '22 12:12 github-actions[bot]