aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/toutv.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/toutv.py')
-rw-r--r--hypervideo_dl/extractor/toutv.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/hypervideo_dl/extractor/toutv.py b/hypervideo_dl/extractor/toutv.py
index 6c84c21..1d5da10 100644
--- a/hypervideo_dl/extractor/toutv.py
+++ b/hypervideo_dl/extractor/toutv.py
@@ -40,17 +40,14 @@ class TouTvIE(RadioCanadaIE):
}]
_CLIENT_KEY = '90505c8d-9c34-4f34-8da1-3a85bdc6d4f4'
- def _real_initialize(self):
- email, password = self._get_login_info()
- if email is None:
- return
+ def _perform_login(self, username, password):
try:
self._access_token = self._download_json(
'https://services.radio-canada.ca/toutv/profiling/accounts/login',
None, 'Logging in', data=json.dumps({
'ClientId': self._CLIENT_KEY,
'ClientSecret': '34026772-244b-49b6-8b06-317b30ac9a20',
- 'Email': email,
+ 'Email': username,
'Password': password,
'Scope': 'id.write media-validation.read',
}).encode(), headers={