Closed Rohanator2314 closed 3 years ago
Thank you for contributing to PyTube. Please remember to reference Contributing.md
After some more testing, it seems that this is some sort of change on YouTubes end for videos in playlists. The same code that could download a playlist before will no longer work. Hopefully their is still a way to fix this
Looking into a fix for this
Well that's weird. I was able to reproduce this bug like 20 minutes ago, and now I can't any more.
A good sign???
It works for me aswell
Could indicate one of several things:
base.js
caching, and people are experiencing this transiently because of a change to the player js while downloading multiple videos. I was afraid this may happen at some point, but wasn't sure.If we get another issue like this in the future, I'll strip the caching code, which will cause a slight performance hit, but should permanently solve the issue if it is indeed the 3rd case.
I'm adding some code that will try and fetch a newer version of the player js if it encounters this error, will try to get it merged today or tomorrow after some additional testing
The code that's supposed to detect these failures and try to refresh the js cache has been pushed as part of v10.9.3
Hello, I had the same problem as described here. I dont know if it helps you here with that issue. But it helped me to use Pytube again successfully.
After I updated all outdated packes (Thats how I found them: pip list --outdated) I was able to use it again.
I updated them in power shell with that statement: "pip freeze | %{$.split('==')[0]} | %{pip install --upgrade $}" (https://www.activestate.com/resources/quick-reads/how-to-update-all-python-packages/ or https://www.youtube.com/watch?v=cJduUNbU9ao)
Greetings
The bug Pytube cannot access streams of some youtube videos
To Reproduce A quick test shows this. I ran this in cmd:
Expected behavior When running this code in the past (on the same video), a list of streams was shown
Output The error is as follows:
System information Please provide the following information:
pip install pytube
(and pytube3), thenpip install git+https://github.com/pytube/pytube