Describe the bug
I am trying to download the highest quality video available for the video but yet its just downloading a 360p or 480p video everytime even.
My code:
from pytubefix import YouTube
from pytubefix.cli import on_progress
from pytubefix.exceptions import *
try:
url = "https://www.youtube.com/watch?v=-pSf9_MgsZ4"
yt = YouTube(url, on_progress_callback = on_progress)
print(yt.title)
ys = yt.streams.get_highest_resolution()
ys.download()
except Exception as e:
print("Error: ",e)
To Reproduce
Steps to reproduce the behavior:
Try to copy-paste and run it on your machine, it would give the same result.
Expected behavior
Whatever highest quality video is available should have been downloaded.
Screenshots
If applicable, add screenshots to help explain your problem.
For the video in the above code link, has the highest video availability of 4k
but still its downloading in 360p quality:
Desktop (please complete the following information):
Describe the bug I am trying to download the highest quality video available for the video but yet its just downloading a 360p or 480p video everytime even.
My code:
To Reproduce Steps to reproduce the behavior:
Expected behavior Whatever highest quality video is available should have been downloaded.
Screenshots If applicable, add screenshots to help explain your problem.
For the video in the above code link, has the highest video availability of 4k
but still its downloading in 360p quality:
Desktop (please complete the following information):