Fix login

This commit is contained in:
Dan Salmon 2016-12-18 21:05:16 -06:00
parent 29aa67edfc
commit 1ee71f05b1

View File

@ -15,15 +15,13 @@ class SeesoIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?seeso\.com/view/episode/(?P<id>[0-9]+)' _VALID_URL = r'https?://(?:www\.)?seeso\.com/view/episode/(?P<id>[0-9]+)'
_TEST = { _TEST = {
# 'md5': 'TODO: md5 sum of the first 10241 bytes of the video file (use --test)', # 'md5': 'TODO: md5 sum of the first 10241 bytes of the video file (use --test)',
# 'params': { 'params': {
# 'username': 'emailhere', 'username': 'emailhere',
# 'password': 'passwordhere' 'password': 'passwordhere'
# }, },
'url': 'https://www.seeso.com/view/episode/799241283849', 'url': 'https://www.seeso.com/view/episode/799241283849',
'info_dict': { 'info_dict': {
# 'id': '799241283849', 'id': '799241283849',
# 'ext': 'mp4',
'id': '42',
'ext': 'mp4', 'ext': 'mp4',
'series': 'Bajillion Dollar Propertie$', 'series': 'Bajillion Dollar Propertie$',
'title': 'Farsi Lessons', 'title': 'Farsi Lessons',
@ -35,18 +33,16 @@ class SeesoIE(InfoExtractor):
} }
def _real_extract(self, url): def _real_extract(self, url):
# username, password = self._get_login_info() username, password = self._get_login_info()
# username = ''
# password = ''
video_id = self._match_id(url) video_id = self._match_id(url)
# if username or password is None: if username is None or password is None:
# return return
_API_AUTH_URL = "https://www.seeso.com/api/v3/auth/login" _API_AUTH_URL = "https://www.seeso.com/api/v3/auth/login"
auth_json = { auth_json = {
"username": 'emailhere', "username": username,
"password": 'passwordhere', "password": password,
"userOnly": True, "userOnly": True,
"isRememberMe": True, "isRememberMe": True,
"isWeb": True "isWeb": True