diff --git a/gallery_dl/downloader/ytdl.py b/gallery_dl/downloader/ytdl.py index 8a69298e..7866f301 100644 --- a/gallery_dl/downloader/ytdl.py +++ b/gallery_dl/downloader/ytdl.py @@ -37,6 +37,9 @@ class YoutubeDLDownloader(DownloaderBase): self.ytdl = YoutubeDL(options) def download(self, url, pathfmt): + for cookie in self.session.cookies: + self.ytdl.cookiejar.set_cookie(cookie) + try: info_dict = self.ytdl.extract_info(url[5:], download=False) except Exception: