From db72409c59463306a07736c76bc1532fe9a59457 Mon Sep 17 00:00:00 2001 From: Lam Date: Mon, 20 Apr 2020 20:34:41 +0200 Subject: [PATCH] Revert "[kaltura] Check source format URL (#21290)" This reverts commit 8421fdadce72be24bc0e78fe9ceb9506263065b5. --- youtube_dl/extractor/kaltura.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/youtube_dl/extractor/kaltura.py b/youtube_dl/extractor/kaltura.py index 0a733424c471..639d7383727b 100644 --- a/youtube_dl/extractor/kaltura.py +++ b/youtube_dl/extractor/kaltura.py @@ -103,11 +103,6 @@ class KalturaIE(InfoExtractor): { 'url': 'https://www.kaltura.com:443/index.php/extwidget/preview/partner_id/1770401/uiconf_id/37307382/entry_id/0_58u8kme7/embed/iframe?&flashvars[streamerType]=auto', 'only_matching': True, - }, - { - # unavailable source format - 'url': 'kaltura:513551:1_66x4rg7o', - 'only_matching': True, } ] @@ -311,17 +306,12 @@ def sign_url(unsigned_url): f['fileExt'] = 'mp4' video_url = sign_url( '%s/flavorId/%s' % (data_url, f['id'])) - format_id = '%(fileExt)s-%(bitrate)s' % f - # Source format may not be available (e.g. kaltura:513551:1_66x4rg7o) - if f.get('isOriginal') is True and not self._is_valid_url( - video_url, entry_id, format_id): - continue # audio-only has no videoCodecId (e.g. kaltura:1926081:0_c03e1b5g # -f mp4-56) vcodec = 'none' if 'videoCodecId' not in f and f.get( 'frameRate') == 0 else f.get('videoCodecId') formats.append({ - 'format_id': format_id, + 'format_id': '%(fileExt)s-%(bitrate)s' % f, 'ext': f.get('fileExt'), 'tbr': int_or_none(f['bitrate']), 'fps': int_or_none(f.get('frameRate')),