Skip to content

Enable oauth2 support  #248

@carloscuervo

Description

@carloscuervo

When you are using oauth2, to avoid issues with the anti-bot youtube's mechanism, you need to use cookies or oauth2 to authenticate with Youtube to get access for download videos.

I am using this plugin: https://github.com/coletdjnz/yt-dlp-youtube-oauth2

When using oauth2 yt-dlp force you to register your "device" (application) to authenticate using oath2.
The response of yt-dlp is:

xxxx@vmi2052980:/var/www/html$ [youtube+oauth2] oauth2: Initializing OAuth2 Authorization Flow
[youtube+oauth2] To give yt-dlp access to your account, go to https://www.google.com/device and enter code XXX-XXX-XXX

That response is blocked until you register that device so you PHP program is blocked until you realice that you have to register the application.

So, you would go to https://www.google.com/device and register your app.

It would be interesting that you can capture the response (and not block the yt-dlp processs) when yt-dlp indicate that you have to register your device.

The next yt-dlp executions don't require register again and you can use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions