It works with cookies parameter but only for a while, like a couple of hundreds of videos, but then it stops working. So I really want to use Oauth2 but I really can't get it to show me the autentication.
I've tried with the following:
yt-dlp --username oauth2 --password '' --mark-watched --simulate --batch-file history.txt
From Powershell, I went to the installation folder of yt-dlp (PIP) which was C:\Users\%USERNAME%\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\Scripts
From here I saw that the plugin was loaded with yt-dlp --verbose - [debug] Extractor Plugins: oauth2 (YoutubeBaseInfoExtractor), oauth2 (YoutubeClipIE), oauth2 (YoutubeConsentRedirectIE), oauth2 (YoutubeFavouritesIE), oauth2 (YoutubeIE), oauth2 (YoutubeMusicSearchURLIE), oauth2 (YoutubeNotificationsIE), oauth2 (YoutubeSearchDateIE), oauth2 (YoutubeSearchIE), oauth2 (YoutubeSearchURLIE), oauth2 (YoutubeTabBaseInfoExtractor), oauth2 (YoutubeTabIE)
[debug] Plugin directories: ['C:\Users\%USERNAME%\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\yt_dlp_plugins']
I run my command - yt-dlp --username oauth2 --password '' --mark-watched --simulate --batch-file history.txt - and finally got the sign in text I was hoping for meaning that the plugin was working (please note that the batch file history.txt is a Google Takeout converted file with all my YouTube watch history in URL format from my Brand YouTube account that I wanted to transfer to my Main/Primary account)
I followed instructions for the login was successful and I could do the simulation
Hi all,
I'm trying to figure out how to use this plugin when doing the following command to mark videos as played:
yt-dlp --mark-watched --simulate --batch-file history.txt
It works with cookies parameter but only for a while, like a couple of hundreds of videos, but then it stops working. So I really want to use Oauth2 but I really can't get it to show me the autentication.
I've tried with the following: yt-dlp --username oauth2 --password '' --mark-watched --simulate --batch-file history.txt
I only get: WARNING: [youtube] Login with password is not supported for this website. Use --cookies-from-browser or --cookies for the authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass cookies