mirror of
https://code.hackerspace.pl/q3k/youtube-dl
synced 2025-03-16 11:43:02 +00:00
[vk] Improve login
This commit is contained in:
parent
2d19fb5072
commit
5f5a9d6158
@ -53,6 +53,7 @@ class VKBaseIE(InfoExtractor):
|
||||
# We will workaround this VK issue by resetting the remixlhk cookie to
|
||||
# the first one manually.
|
||||
cookies = url_handle.headers.get('Set-Cookie')
|
||||
if cookies:
|
||||
if sys.version_info[0] >= 3:
|
||||
cookies = cookies.encode('iso-8859-1')
|
||||
cookies = cookies.decode('utf-8')
|
||||
|
Loading…
x
Reference in New Issue
Block a user