JuanBindez / pytubefix

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

Some StreamQuery Objects Returning 'None' From get_highest_resolution() method #188

Open modey3 opened 3 weeks ago

modey3 commented 3 weeks ago

Describe the bug As title says. I'm trying to download the following url: https://www.youtube.com/watch?v=iiy2u3Ky4u4

To Reproduce Run the following code: from pytubefix import YouTube from pytubefix.cli import on_progress url = "https://www.youtube.com/watch?v=iiy2u3Ky4u4" yt = YouTube(url, use_oauth=True, allow_oauth_cache=True, on_progress_callback = on_progress) ys = yt.streams.get_highest_resolution() ys.download() # you will only get the request to authenticate once you download

Expected behaviorvideo download

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context StreamQuery Data: [, , , , , , , , , , , , , ]

modey3 commented 3 weeks ago

Here is the StreamQuery Data from a video that works: `

` The video that is giving me trouble is apart of a subscription service. I'm logged into YT using my credentials do YT should be receiving my access token. Would subscription services have separate tokens?