JuanBindez / pytubefix

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

resolution problem #177

Closed Mostafa-Mohamed-Atef closed 1 month ago

Mostafa-Mohamed-Atef commented 1 month ago

Describe the bug I tried downloading videos from youtube only 360p are available as the highest resolution, tried filtering by resolution and progressive=False but it downloads broken videos

Code def download(): global progress_bar try: yd = yt.streams.get_highest_resolution() print(yt.title) print(yd) progress_bar = tqdm(total=yd.filesize, unit='0', unit_scale=True, desc="Downloading") yd.download(path) progress_bar.close() print('completed') except Exception as e: print(e)

output

**note** I updated the last pytubefix version + I'm on linux (if it is important)
felipeucelli commented 1 month ago

YouTube changed streams internally, see #128.

Mostafa-Mohamed-Atef commented 1 month ago

it worked thanks