]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/gigya.py
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
11 class GigyaBaseIE(InfoExtractor
):
12 def _gigya_login(self
, auth_data
):
13 auth_info
= self
._download
_json
(
14 'https://accounts.eu1.gigya.com/accounts.login', None,
15 note
='Logging in', errnote
='Unable to log in',
16 data
=urlencode_postdata(auth_data
))
18 error_message
= auth_info
.get('errorDetails') or auth_info
.get('errorMessage')
21 'Unable to login: %s' % error_message
, expected
=True)