X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Ftennistv.py;h=a586f30ad55a2e060257d86593c793471246d9fc;hb=HEAD;hp=601a17e57d96d2937f74cf6cfa57640f1d45be51;hpb=f226880c6d44098b5e99b05a83ed739e18d15690;p=youtube-dl diff --git a/youtube_dl/extractor/tennistv.py b/youtube_dl/extractor/tennistv.py index 601a17e57..a586f30ad 100644 --- a/youtube_dl/extractor/tennistv.py +++ b/youtube_dl/extractor/tennistv.py @@ -32,7 +32,7 @@ class TennisTVIE(InfoExtractor): _NETRC_MACHINE = 'tennistv' def _login(self): - (username, password) = self._get_login_info() + username, password = self._get_login_info() if not username or not password: raise ExtractorError('No login info available, needed for using %s.' % self.IE_NAME, expected=True) @@ -40,7 +40,7 @@ class TennisTVIE(InfoExtractor): 'Email': username, 'Password': password, } - login_json = json.dumps(login_form) + login_json = json.dumps(login_form).encode('utf-8') headers = { 'content-type': 'application/json', 'Referer': 'https://www.tennistv.com/login', @@ -81,7 +81,7 @@ class TennisTVIE(InfoExtractor): 'videoID': internal_id, 'VideoUrlType': 'HLSV3', } - check_json = json.dumps(check_data) + check_json = json.dumps(check_data).encode('utf-8') check_result = self._download_json( 'https://www.tennistv.com/api/users/v1/entitlementchecknondiva', video_id, note='Checking video authorization', headers=headers, data=check_json) @@ -104,7 +104,6 @@ class TennisTVIE(InfoExtractor): 'title': title, 'description': description, 'formats': formats, - 'timestamp': timestamp, 'thumbnail': thumbnail, 'timestamp': timestamp, 'series': series,