1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00

[dl:ytdl] change 'forward-cookies' default to 'true' (#6401, #6348)

revert dba87ca99e
This commit is contained in:
Mike Fährmann 2024-10-31 17:35:08 +01:00
parent 24408cd450
commit f79e57b71e
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 4 additions and 2 deletions

View File

@ -5463,7 +5463,7 @@ downloader.ytdl.forward-cookies
Type
``bool``
Default
``false``
``true``
Description
Forward gallery-dl's cookies to |ytdl|.

View File

@ -29,7 +29,7 @@ class YoutubeDLDownloader(DownloaderBase):
}
self.ytdl_instance = None
self.forward_cookies = self.config("forward-cookies", False)
self.forward_cookies = self.config("forward-cookies", True)
self.progress = self.config("progress", 3.0)
self.outtmpl = self.config("outtmpl")
@ -53,6 +53,8 @@ class YoutubeDLDownloader(DownloaderBase):
if self.outtmpl == "default":
self.outtmpl = module.DEFAULT_OUTTMPL
if self.forward_cookies:
self.log.debug("Forwarding cookies to %s",
ytdl_instance.__module__)
set_cookie = ytdl_instance.cookiejar.set_cookie
for cookie in self.session.cookies:
set_cookie(cookie)