1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 18:22:21 +00:00

[vk] Improve login

This commit is contained in:
Sergey M․ 2016-07-13 21:52:52 +07:00
parent 2d19fb5072
commit 5f5a9d6158
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -53,6 +53,7 @@ class VKBaseIE(InfoExtractor):
# We will workaround this VK issue by resetting the remixlhk cookie to # We will workaround this VK issue by resetting the remixlhk cookie to
# the first one manually. # the first one manually.
cookies = url_handle.headers.get('Set-Cookie') cookies = url_handle.headers.get('Set-Cookie')
if cookies:
if sys.version_info[0] >= 3: if sys.version_info[0] >= 3:
cookies = cookies.encode('iso-8859-1') cookies = cookies.encode('iso-8859-1')
cookies = cookies.decode('utf-8') cookies = cookies.decode('utf-8')