coletdjnz / yt-dlp-youtube-oauth2

Plugin that adds OAuth2 login support to yt-dlp's YouTube extractors
The Unlicense
130 stars 13 forks source link

Instructions to apply oAuth globally for yt-dlp #14

Closed nyanmeister closed 3 weeks ago

nyanmeister commented 1 month ago

I'd do this as a pull request, but I'm not too good at using Github.

If you use the netrc method, you can make a file at ~/.config/yt-dlp/config, populated with: --netrc

Now all attempts to use yt-dlp will use oAuth!

nyanmeister commented 1 month ago

Looking at this again, --username oauth2 --password "" could also be put in ~/.config/yt-dlp/config to do the same thing.

coletdjnz commented 1 month ago

You can also use a .netrc file as described on the README 😉

https://github.com/yt-dlp/yt-dlp?tab=readme-ov-file#authentication-with-netrc

There are lots of different ways of automatically enabling it for yt-dlp

nyanmeister commented 1 month ago

It wouldn't work for me automatically in Syncplay (which I suspect to be because .netrc won't engage outside of the shell or terminal) unless I did the step I provided.

coletdjnz commented 3 weeks ago

I've mentioned it in the README for clarity