mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-24 00:01:04 +02:00
[zee5] Fix py2 compatibility
This commit is contained in:
parent
0fa9a1e236
commit
1815d1028b
@ -37,7 +37,7 @@ class Zee5IE(InfoExtractor):
|
|||||||
'title': 'Krishna - The Birth',
|
'title': 'Krishna - The Birth',
|
||||||
'duration': 4368,
|
'duration': 4368,
|
||||||
'average_rating': 4,
|
'average_rating': 4,
|
||||||
'description': str,
|
'description': compat_str,
|
||||||
'alt_title': 'Krishna - The Birth',
|
'alt_title': 'Krishna - The Birth',
|
||||||
'uploader': 'Zee Entertainment Enterprises Ltd',
|
'uploader': 'Zee Entertainment Enterprises Ltd',
|
||||||
'release_date': '20060101',
|
'release_date': '20060101',
|
||||||
@ -58,7 +58,7 @@ class Zee5IE(InfoExtractor):
|
|||||||
'title': 'Episode 1 - The Test Of Bramha',
|
'title': 'Episode 1 - The Test Of Bramha',
|
||||||
'duration': 1336,
|
'duration': 1336,
|
||||||
'average_rating': 4,
|
'average_rating': 4,
|
||||||
'description': str,
|
'description': compat_str,
|
||||||
'alt_title': 'Episode 1 - The Test Of Bramha',
|
'alt_title': 'Episode 1 - The Test Of Bramha',
|
||||||
'uploader': 'Green Gold',
|
'uploader': 'Green Gold',
|
||||||
'release_date': '20090101',
|
'release_date': '20090101',
|
||||||
@ -95,14 +95,14 @@ def _real_extract(self, url):
|
|||||||
m3u8_url = try_get(
|
m3u8_url = try_get(
|
||||||
json_data,
|
json_data,
|
||||||
(lambda x: x['hls'][0], lambda x: x['video_details']['hls_url']),
|
(lambda x: x['hls'][0], lambda x: x['video_details']['hls_url']),
|
||||||
str)
|
compat_str)
|
||||||
formats = self._extract_m3u8_formats(
|
formats = self._extract_m3u8_formats(
|
||||||
'https://zee5vodnd.akamaized.net' + m3u8_url.replace('/drm', '/hls', 1) + token_request['video_token'],
|
'https://zee5vodnd.akamaized.net' + m3u8_url.replace('/drm', '/hls', 1) + token_request['video_token'],
|
||||||
video_id, fatal=False)
|
video_id, fatal=False)
|
||||||
mpd_url = try_get(
|
mpd_url = try_get(
|
||||||
json_data,
|
json_data,
|
||||||
(lambda x: x['video'][0], lambda x: x['video_details']['url']),
|
(lambda x: x['video'][0], lambda x: x['video_details']['url']),
|
||||||
str)
|
compat_str)
|
||||||
formats += self._extract_mpd_formats(
|
formats += self._extract_mpd_formats(
|
||||||
'https://zee5vod.akamaized.net' + mpd_url,
|
'https://zee5vod.akamaized.net' + mpd_url,
|
||||||
video_id, fatal=False)
|
video_id, fatal=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user