diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-17 22:48:50 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-21 16:01:53 +0530 |
commit | c487cf00101525ff836d59a2a42ef63e85ea9556 (patch) | |
tree | 65a5eb466f3d42e9da24cf6af5202876b6af6b0f /yt_dlp/extractor/common.py | |
parent | 415f8d51a8f3565d7a1d4a8188511e7ad68514c7 (diff) | |
download | hypervideo-pre-c487cf00101525ff836d59a2a42ef63e85ea9556.tar.lz hypervideo-pre-c487cf00101525ff836d59a2a42ef63e85ea9556.tar.xz hypervideo-pre-c487cf00101525ff836d59a2a42ef63e85ea9556.zip |
[cleanup] Misc
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index d222fa7ef..eee908089 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -11,7 +11,7 @@ import sys import time import xml.etree.ElementTree -from ..compat import functools, re +from ..compat import functools, re # isort: split from ..compat import ( compat_cookiejar_Cookie, compat_cookies_SimpleCookie, @@ -3602,9 +3602,7 @@ class InfoExtractor: def _get_cookies(self, url): """ Return a compat_cookies_SimpleCookie with the cookies for the url """ - req = sanitized_Request(url) - self._downloader.cookiejar.add_cookie_header(req) - return compat_cookies_SimpleCookie(req.get_header('Cookie')) + return compat_cookies_SimpleCookie(self._downloader._calc_cookies(url)) def _apply_first_set_cookie_header(self, url_handle, cookie): """ |