hbmartin / pytube3

Deprecated, please see https://github.com/pytube3/pytube3
3 stars 1 forks source link

KeyError: 'formats' #1

Open Jabyer opened 4 years ago

Jabyer commented 4 years ago

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