This commit is contained in:
jpalecek 2020-10-04 07:41:33 +02:00 committed by GitHub
commit f722243d94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 3 deletions

View File

@ -103,7 +103,7 @@ class CBCIE(InfoExtractor):
# multiple CBC.APP.Caffeine.initInstance(...)
'url': 'http://www.cbc.ca/news/canada/calgary/dog-indoor-exercise-winter-1.3928238',
'info_dict': {
'title': 'Keep Rover active during the deep freeze with doggie pushups and other fun indoor tasks',
'title': 're:Keep Rover active during the deep freeze with doggie pushups and other fun indoor tasks.*',
'id': 'dog-indoor-exercise-winter-1.3928238',
'description': 'md5:c18552e41726ee95bd75210d1ca9194c',
},
@ -313,8 +313,20 @@ class CBCWatchBaseIE(InfoExtractor):
guid = xpath_text(item, 'guid', fatal=True)
title = xpath_text(item, 'title', fatal=True)
media_group = xpath_element(item, _add_ns('media:group'), fatal=True)
content = xpath_element(media_group, _add_ns('media:content'), fatal=True)
media_group = xpath_element(item, _add_ns('media:group'), fatal=False)
content = None
if media_group is not None:
content = xpath_element(media_group, _add_ns('media:content'), fatal=True)
if content is None:
content = xpath_element(item, _add_ns('media:content'), fatal=False)
if content is None:
link = xpath_text(item, 'link', fatal=True)
sub_result = self._parse_rss_feed(self._call_api(link, guid))
entries.extend(sub_result.get('entries') or [])
continue
content_url = content.attrib['url']
thumbnails = []