diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-02 23:48:35 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-05-03 22:49:03 +0530 |
commit | 1815d1028b45e1f73a8f63205765ad4f9da6a6da (patch) | |
tree | 1359e755e6ce235a603a958d091d9c44a08903e2 | |
parent | 0fa9a1e23625f0ba4516e5107ce447ac693e7ec1 (diff) | |
download | hypervideo-pre-1815d1028b45e1f73a8f63205765ad4f9da6a6da.tar.lz hypervideo-pre-1815d1028b45e1f73a8f63205765ad4f9da6a6da.tar.xz hypervideo-pre-1815d1028b45e1f73a8f63205765ad4f9da6a6da.zip |
[zee5] Fix py2 compatibility
-rw-r--r-- | yt_dlp/extractor/zee5.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/zee5.py b/yt_dlp/extractor/zee5.py index 11e094adc..3737768db 100644 --- a/yt_dlp/extractor/zee5.py +++ b/yt_dlp/extractor/zee5.py @@ -37,7 +37,7 @@ class Zee5IE(InfoExtractor): 'title': 'Krishna - The Birth', 'duration': 4368, 'average_rating': 4, - 'description': str, + 'description': compat_str, 'alt_title': 'Krishna - The Birth', 'uploader': 'Zee Entertainment Enterprises Ltd', 'release_date': '20060101', @@ -58,7 +58,7 @@ class Zee5IE(InfoExtractor): 'title': 'Episode 1 - The Test Of Bramha', 'duration': 1336, 'average_rating': 4, - 'description': str, + 'description': compat_str, 'alt_title': 'Episode 1 - The Test Of Bramha', 'uploader': 'Green Gold', 'release_date': '20090101', @@ -95,14 +95,14 @@ class Zee5IE(InfoExtractor): m3u8_url = try_get( json_data, (lambda x: x['hls'][0], lambda x: x['video_details']['hls_url']), - str) + compat_str) formats = self._extract_m3u8_formats( '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) + compat_str) formats += self._extract_mpd_formats( 'https://zee5vod.akamaized.net' + mpd_url, video_id, fatal=False) |