[GH-ISSUE #73] progress bar , speed, traffic queue and peers still show up when download completed #62

Closed
opened 2026-02-25 20:32:18 +03:00 by kerem · 2 comments
Owner

Originally created by @buziyborni on GitHub (May 15, 2016).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/73

As i said first i was testing the app but it
seem like after the download completed the progress bar , speed, traffic queue and peers
still show up how to do i make it vanish after
download completed. I was trying to make it with css but it didn't work

Originally created by @buziyborni on GitHub (May 15, 2016). Original GitHub issue: https://github.com/asapach/peerflix-server/issues/73 As i said first i was testing the app but it seem like after the download completed the progress bar , speed, traffic queue and peers still show up how to do i make it vanish after download completed. I was trying to make it with css but it didn't work
kerem 2026-02-25 20:32:18 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@asapach commented on GitHub (May 15, 2016):

It depends on your definition of "complete". Unfortunately the underlying library (torrent-stream) doesn't have an indication when all the files have been downloaded, so you can't tell if there's nothing selected (so the server is idle) or the torrent is 100% downloaded and it's seeding.
If "idle" is good enough for you can rely on the following classes:

  • Each torrent has a div.panel container
  • When a torrent is fetching metadata it has panel-warning class
  • When it's "interested" and downloading something it has panel-success class

So what you can do is hide the progressbar (div.progress) and footer (div.panel-footer) for all cases except panel-success.

<!-- gh-comment-id:219289035 --> @asapach commented on GitHub (May 15, 2016): It depends on your definition of "complete". Unfortunately the underlying library ([torrent-stream](/mafintosh/torrent-stream)) doesn't have an indication when all the files have been downloaded, so you can't tell if there's nothing selected (so the server is idle) or the torrent is 100% downloaded and it's seeding. If "idle" is good enough for you can rely on the following classes: - Each torrent has a `div.panel` container - When a torrent is fetching metadata it has `panel-warning` class - When it's "interested" and downloading something it has `panel-success` class So what you can do is hide the progressbar (`div.progress`) and footer (`div.panel-footer`) for all cases except `panel-success`.
Author
Owner

@buziyborni commented on GitHub (May 15, 2016):

Thanks sir will try and give you feedback

<!-- gh-comment-id:219289517 --> @buziyborni commented on GitHub (May 15, 2016): Thanks sir will try and give you feedback
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/peerflix-server#62
No description provided.