Compare commits

..

No commits in common. "5c758e9580ec58f63d65bdf2486377028a467fd2" and "924eaf334e85bc8695fbd7363761c5b69ba31008" have entirely different histories.

View File

@ -152,13 +152,15 @@ class ERRJupiterIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
data = self._download_json(
data = try_call(lambda: self._download_json(
'https://services.err.ee/api/v2/vodContent/getContentPageData', video_id,
query={'contentId': video_id})['data']['mainContent']
query={'contentId': video_id})['data']['mainContent'])
if not data:
raise ExtractorError('Failed to get video data', expected=True)
media_data = traverse_obj(data, ('medias', ..., {dict}), get_all=False)
if traverse_obj(media_data, ('restrictions', 'drm', {bool})):
self.report_drm(video_id)
self.raise_no_formats('This video is DRM protected', expected=True)
formats, subtitles = [], {}
for url in set(traverse_obj(media_data, ('src', ('hls', 'hls2', 'hlsNew'), {url_or_none}))):