diff options
author | Hadi0609 <69854379+Hadi0609@users.noreply.github.com> | 2021-04-28 15:21:54 +0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 14:51:54 +0530 |
commit | db9a564b6a5c31472f8298969584eead0b59fa1c (patch) | |
tree | d2871d278cfc38ae324d83e8758110cb190ae181 | |
parent | c72967d5de3eeccb6d787c4d9651ce544ca2ede2 (diff) | |
download | hypervideo-pre-db9a564b6a5c31472f8298969584eead0b59fa1c.tar.lz hypervideo-pre-db9a564b6a5c31472f8298969584eead0b59fa1c.tar.xz hypervideo-pre-db9a564b6a5c31472f8298969584eead0b59fa1c.zip |
[zee5] Fix extraction for some URLs (#279)
Closes: #278
-rw-r--r-- | yt_dlp/extractor/zee5.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/zee5.py b/yt_dlp/extractor/zee5.py index d461a11eb..11e094adc 100644 --- a/yt_dlp/extractor/zee5.py +++ b/yt_dlp/extractor/zee5.py @@ -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) |