JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
https://pytubefix.readthedocs.io
MIT License
722 stars 100 forks source link

Fixed HTTP Error 400: Bad Request when using use_oauth #331

Closed felipeucelli closed 6 days ago

felipeucelli commented 6 days ago

Fixed HTTP Error 400: Bad Request when using use_oauth #327

Initially, oauth was designed to log in only to TV clients, but for several years it could be used on other clients.

A recent update has resolved this and now only TV and TV_EMBED clients can use oauth.

So now when use_oauth=True is used the client will be switched to the TV.

TV-based clients do not return the video title via the player endpoint, so if the title is not found, it will be attempted to search the next endpoint

Changes to this PR: