]> jfr.im git - yt-dlp.git/commitdiff
[extractor/bbc] Fix news articles (#4472)
authorajj8 <redacted>
Thu, 28 Jul 2022 13:00:33 +0000 (14:00 +0100)
committerGitHub <redacted>
Thu, 28 Jul 2022 13:00:33 +0000 (18:30 +0530)
Authored by: ajj8

yt_dlp/extractor/bbc.py

index 5ddeef7b5dce2a3ac17dd65e60694a677a530ca4..4413a299a4353f2d5a4293ec9c581a609852609a 100644 (file)
@@ -1231,7 +1231,7 @@ def parse_media(media):
                                           (lambda x: x['data']['blocks'],
                                            lambda x: x['data']['content']['model']['blocks'],),
                                           list) or []):
-                        if block.get('type') != 'media':
+                        if block.get('type') not in ['media', 'video']:
                             continue
                         parse_media(block.get('model'))
             return self.playlist_result(