1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 22:03:03 +08:00

[YoutubeDL] Use custom cookie processor

This commit is contained in:
Sergey M․ 2015-09-06 06:21:33 +06:00
parent a6420bf50c
commit 6a3f4c3f82

View File

@ -69,6 +69,7 @@ from .utils import (
version_tuple,
write_json_file,
write_string,
YoutubeDLCookieProcessor,
YoutubeDLHandler,
prepend_extension,
replace_extension,
@ -1943,8 +1944,7 @@ class YoutubeDL(object):
if os.access(opts_cookiefile, os.R_OK):
self.cookiejar.load()
cookie_processor = compat_urllib_request.HTTPCookieProcessor(
self.cookiejar)
cookie_processor = YoutubeDLCookieProcessor(self.cookiejar)
if opts_proxy is not None:
if opts_proxy == '':
proxies = {}