[bbccouk] Skip unrecognized formats in media selector (#12701)
authorSergey M․ <dstftw@gmail.com>
Mon, 10 Apr 2017 15:53:51 +0000 (22:53 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 10 Apr 2017 15:53:51 +0000 (22:53 +0700)
youtube_dl/extractor/bbc.py

index f0de076199ef6c5eaa27babc8f899db5203784ae..a0c77b0b05b98790fce62dbe43a360932a84e6ee 100644 (file)
@@ -389,6 +389,8 @@ class BBCCoUkIE(InfoExtractor):
                                 'rtmp_live': False,
                                 'ext': 'flv',
                             })
+                        else:
+                            continue
                         formats.append(fmt)
             elif kind == 'captions':
                 subtitles = self.extract_subtitles(media, programme_id)