mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 02:32:33 +01:00
revert dba87ca99e
This commit is contained in:
parent
24408cd450
commit
f79e57b71e
@ -5463,7 +5463,7 @@ downloader.ytdl.forward-cookies
|
||||
Type
|
||||
``bool``
|
||||
Default
|
||||
``false``
|
||||
``true``
|
||||
Description
|
||||
Forward gallery-dl's cookies to |ytdl|.
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user