JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
http://pytubefix.rtfd.io/
MIT License
454 stars 67 forks source link

get_highest_resolution() doesn't work #186

Closed greizdeifi closed 1 week ago

greizdeifi commented 1 month ago

The get_highest_resolution() doesn't work properly and always delivers the 360p stream and all YouTube videos I've tried. Also get_lowest_resolution() always delivers the 360p stream. Also in the terminal the default download is 360p.

To Reproduce from pytubefix import YouTube from pytubefix.cli import on_progress

url = input("URL >")

yt = YouTube(url, on_progress_callback = on_progress) print(yt.title) print(yt.streams)

ys = yt.streams.get_highest_resolution() print(ys)

Desktop (please complete the following information):

felipeucelli commented 1 month ago

YouTube changed streams internally, see https://github.com/JuanBindez/pytubefix/issues/128.