[extractor/bbc] Fix news articles (#4472)

Authored by: ajj8
This commit is contained in:
ajj8 2022-07-28 14:00:33 +01:00 committed by GitHub
parent f640e42ffa
commit edebb65170
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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