Closed nyanmeister closed 3 weeks ago
Looking at this again, --username oauth2 --password ""
could also be put in ~/.config/yt-dlp/config
to do the same thing.
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
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.
I've mentioned it in the README for clarity
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!