aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-06-13 03:09:35 +0600
committerSergey M․ <dstftw@gmail.com>2015-06-13 03:09:35 +0600
commit4f3bf679f5a764f7a26d3c45c82be43e34a3cc4d (patch)
tree4580d5bf79fc2721334179f48a2adc47cd846da2
parent8b6c896c4b60fe13b30227071aba2783222132a0 (diff)
[vk] Fix authentication for non-ASCII login/password
-rw-r--r--youtube_dl/extractor/vk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py
index cc384adbf..d0e772108 100644
--- a/youtube_dl/extractor/vk.py
+++ b/youtube_dl/extractor/vk.py
@@ -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',