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

on_progres doesn't work fully #197

Open
NeUk1N opened this issue Aug 22, 2024 · 1 comment
Open

on_progres doesn't work fully #197

NeUk1N opened this issue Aug 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@NeUk1N
Copy link

NeUk1N commented Aug 22, 2024


My progress bar is displayed with a delay, and when it appears, it is either with 100% or another large value.


from pytubefix import YouTube
from pytubefix.cli import on_progress

url = "https://www.youtube.com/watch?v=25N1pdzvp4c"

yt = YouTube(url, on_progress_callback = on_progress)

ys = yt.streams.get_highest_resolution()

ys.download()


When you start the program, a progress bar immediately appears with 0%, gradually filling up to 100%.


Desktop (please complete the following information):

  • OS: [Windows 10 Pro]
  • Python Version [3.9.6]
  • Pytubefix Version [15.0.0]

Is it because I am using a proxy server when downloading?

@NeUk1N NeUk1N added the bug Something isn't working label Aug 22, 2024
@jhanley-com
Copy link

Insufficient information to debug.

I verified that the on_progress_callback works correctly on Windows 10 x64 today with PyTubeFix version 6.16.3.

I have been developing constantly for several months. I have never noticed a problem on Ubuntu or Windows. I suspect you have an issue with your code, but you did not include code to review that implements on_progress().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants