Compare commits

..

No commits in common. "d2e94b1a456df83ee19e8814ed8e8048bcdb1a4b" and "3eeb103b5e34965f169fcffc25704b56b66774c5" have entirely different histories.

View File

@ -99,16 +99,9 @@ class JioCinemaBaseIE(InfoExtractor):
stream_response = self._download_json(url_or_request=stream_endpoint, video_id=None, note='Extracting Stream URL', data=bytes(json.dumps(payload), encoding='utf8'), headers=headers) stream_response = self._download_json(url_or_request=stream_endpoint, video_id=None, note='Extracting Stream URL', data=bytes(json.dumps(payload), encoding='utf8'), headers=headers)
mpd_url = None
m3u8_url = None
for url_data in stream_response['data']['playbackUrls']: for url_data in stream_response['data']['playbackUrls']:
if url_data['encryption'] == 'widevine': if url_data['encryption'] == 'widevine':
mpd_url = url_data['url'] return url_data['url']
elif url_data['encryption'] == 'aes128':
m3u8_url = url_data['url']
return mpd_url, m3u8_url
def _real_initialize(self): def _real_initialize(self):
super()._real_initialize() super()._real_initialize()
@ -124,11 +117,10 @@ class JioCinemaBaseIE(InfoExtractor):
return return
media_metadata = self._get_media_metadata(media_id) media_metadata = self._get_media_metadata(media_id)
mpd_url, m3u8_url = self._get_stream_url(self.auth_token, media_id) mpd_url = self._get_stream_url(self.auth_token, media_id)
formats = [] formats = []
formats.extend(self._extract_mpd_formats(mpd_url, media_id)) formats.extend(self._extract_mpd_formats(mpd_url, media_id))
formats.extend(self._extract_m3u8_formats(m3u8_url, media_id))
response_dict = { response_dict = {
'id': media_id, 'id': media_id,
@ -155,7 +147,7 @@ class JioCinemaTVIE(JioCinemaBaseIE):
}, },
'params': { 'params': {
'skip_download': True, 'skip_download': True,
'format': 'best' 'format': 'bestvideo'
} }
} }
@ -172,7 +164,7 @@ class JioCinemaMovieIE(JioCinemaBaseIE):
}, },
'params': { 'params': {
'skip_download': True, 'skip_download': True,
'format': 'best' 'format': 'bestvideo'
} }
} }
@ -194,7 +186,7 @@ class JioCinemaTVSeasonIE(JioCinemaBaseIE):
}, },
'params': { 'params': {
'skip_download': True, 'skip_download': True,
'format': 'best' 'format': 'bestvideo'
} }
} }