[zee5] Fix extraction for some URLs (#279)

Closes: #278
This commit is contained in:
Hadi0609 2021-04-28 15:21:54 +06:00 committed by GitHub
parent c72967d5de
commit db9a564b6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -97,14 +97,14 @@ class Zee5IE(InfoExtractor):
(lambda x: x['hls'][0], lambda x: x['video_details']['hls_url']),
str)
formats = self._extract_m3u8_formats(
'https://zee5vodnd.akamaized.net' + m3u8_url.replace('/drm1/', '/hls1/') + token_request['video_token'],
'https://zee5vodnd.akamaized.net' + m3u8_url.replace('/drm', '/hls', 1) + token_request['video_token'],
video_id, fatal=False)
mpd_url = try_get(
json_data,
(lambda x: x['video'][0], lambda x: x['video_details']['url']),
str)
formats += self._extract_mpd_formats(
'https://zee5vodnd.akamaized.net' + mpd_url + token_request['video_token'],
'https://zee5vod.akamaized.net' + mpd_url,
video_id, fatal=False)
self._sort_formats(formats)