coletdjnz / yt-dlp-youtube-oauth2

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

How to change the account #8

Closed mingzhang96 closed 1 month ago

mingzhang96 commented 1 month ago

I used an account and logged in successfully until the account was blocked. Now I want to change the account, and I try

yt-dlp -vU --list-formats --username oauth2 --password 'password_from_new_account' "https://www.youtube.com/watch?v=xxxxx"

but it seems to be still using the old account. Could you show how to change the account?

coletdjnz commented 1 month ago

The access token is stored in the cache, which you can clear from yt-dlp with --rm-cache-dir

After that it should prompt you again to log in.

mingzhang96 commented 1 month ago

The access token is stored in the cache, which you can clear from yt-dlp with --rm-cache-dir

After that it should prompt you again to log in.

yt-dlp --rm-cache-dir works! Thanks for your response!