Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add progress tracking to TorrentDownloader #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Likhithsai2580
Copy link
Contributor

Fixes #10

Add functionality to track and access the progress of downloading a torrent via an API request.

  • torrentp/downloader.py

    • Add a _progress instance variable to store the progress percentage.
    • Update the _get_status_progress method to store the progress percentage in the _progress variable.
    • Add a get_progress method to return the current progress percentage.
  • torrentp/torrent_downloader.py

    • Add a get_progress method to call the get_progress method of the Downloader class.
  • README.md

    • Add instructions on how to access the download progress via the new API method.

Fixes iw4p#10

Add functionality to track and access the progress of downloading a torrent via an API request.

* **torrentp/downloader.py**
  - Add a `_progress` instance variable to store the progress percentage.
  - Update the `_get_status_progress` method to store the progress percentage in the `_progress` variable.
  - Add a `get_progress` method to return the current progress percentage.

* **torrentp/torrent_downloader.py**
  - Add a `get_progress` method to call the `get_progress` method of the `Downloader` class.

* **README.md**
  - Add instructions on how to access the download progress via the new API method.
@iw4p
Copy link
Owner

iw4p commented Jan 14, 2025

Hi thanks!
what are # P00ff and # Pb7d0 in front of each line?

And can you please increase the version to 0.2.4 here
Based on what I asked here. Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Progress tracking
2 participants