From 964744af952fc372e961a4b6b4b0f3ed6172a83f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Mon, 10 Apr 2017 22:53:51 +0700 Subject: [PATCH] [bbccouk] Skip unrecognized formats in media selector (#12701) --- youtube_dl/extractor/bbc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py index f0de07619..a0c77b0b0 100644 --- a/youtube_dl/extractor/bbc.py +++ b/youtube_dl/extractor/bbc.py @@ -389,6 +389,8 @@ def _process_media_selector(self, media_selection, programme_id): 'rtmp_live': False, 'ext': 'flv', }) + else: + continue formats.append(fmt) elif kind == 'captions': subtitles = self.extract_subtitles(media, programme_id)