1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-04 00:55:15 +00:00

Update to ytdl-commit-654b4f4

[youtube] prioritize information from YoutubeIE for playlist entries
654b4f4ff2
This commit is contained in:
pukkandan
2021-04-04 03:35:17 +05:30
parent b28f8d244a
commit 39ed931e53
6 changed files with 313 additions and 23 deletions

View File

@ -3221,7 +3221,10 @@ class InfoExtractor(object):
""" 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'))
cookie = req.get_header('Cookie')
if cookie and sys.version_info[0] == 2:
cookie = str(cookie)
return compat_cookies.SimpleCookie(cookie)
def _apply_first_set_cookie_header(self, url_handle, cookie):
"""