]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[vk] Fix authentication for non-ASCII login/password
authorSergey M․ <dstftw@gmail.com>
Fri, 12 Jun 2015 21:09:35 +0000 (03:09 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 12 Jun 2015 21:09:35 +0000 (03:09 +0600)
youtube_dl/extractor/vk.py

index cc384adbf9837f35f90c64d0e8dc0396b0b601ec..d0e772108fe875100a8c2ceaec961814de0ab0e6 100644 (file)
@@ -119,8 +119,8 @@ class VKIE(InfoExtractor):
             'act': 'login',
             'role': 'al_frame',
             'expire': '1',
-            'email': username,
-            'pass': password,
+            'email': username.encode('cp1251'),
+            'pass': password.encode('cp1251'),
         }
 
         request = compat_urllib_request.Request('https://login.vk.com/?act=login',