Configuring yt-dlp to Enable Cookies from ungoogled-chromium
YouTube
yt-dlp
diary
Problem
I was trying to download a youtube video with a portable install of yt-dlp using the following command:
yt-dlp "https://www.youtube.com/watch?v=o78RWwgIAN0" --cookies-from-browser chromium --remote-components ejs:npmbecause I use ungoogled-chromium and installed deno previously. However, the output said:
Extracting cookies from chromium
ERROR: Could not copy Chrome cookie database. See https://github.com/yt-dlp/yt-dlp/issues/7271 for more info
ERROR: Could not copy Chrome cookie database. See https://github.com/yt-dlp/yt-dlp/issues/7271 for more infoSolution
Checking this link, I have to install a plugin called yt-dlp-ChromeCookieUnlock. According to the wiki of yt-dlp, I have to put the package such as [path to yt-dlp.exe]/yt-dlp-plugins/[package name]/yt_dlp_plugins.
It worked perfectly after I did so.
Btw, use --write-thumbnail to download the thumbnails.