Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'formats' #1

Open
Jabyer opened this issue Apr 21, 2020 · 0 comments
Open

KeyError: 'formats' #1

Jabyer opened this issue Apr 21, 2020 · 0 comments

Comments

@Jabyer
Copy link

Jabyer commented Apr 21, 2020

Only with this link: https://www.youtube.com/watch?v=DrxbA_GWofU&feature=youtu.be

Traceback (most recent call last):
File "D:\MEGA\Programación\Python\Descargar videos de Youtube.py", line 18, in
YouTube(url).streams.first().download()
File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\pytube_main_.py", line 94, in init
self.descramble()
File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\pytube_main_.py", line 138, in descramble
mixins.apply_descrambler(self.player_config_args, fmt)
File "C:\Users\user\AppData\Roaming\Python\Python37\site-packages\pytube\mixins.py", line 94, in apply_descrambler
formats = json.loads(stream_data["player_response"])["streamingData"]["formats"]
KeyError: 'formats'

I have also tried to download it from this online website and it gives me a copyright error.
onli

Oculto is Hidden mode:
oculto

I have managed to download it from https://www.savido.net/, but in .m3u8 format, which I have opened in text mode and inside you can see multiple links with a .ts extension:
downloaded

Misa José María.m3u8.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant