mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
[CBC] Follow <link> tags to next-level playlists (eg. series->season)
This commit is contained in:
parent
0a10f50e2f
commit
0ade32ff63
@ -101,7 +101,7 @@ class CBCIE(InfoExtractor):
|
|||||||
# multiple CBC.APP.Caffeine.initInstance(...)
|
# multiple CBC.APP.Caffeine.initInstance(...)
|
||||||
'url': 'http://www.cbc.ca/news/canada/calgary/dog-indoor-exercise-winter-1.3928238',
|
'url': 'http://www.cbc.ca/news/canada/calgary/dog-indoor-exercise-winter-1.3928238',
|
||||||
'info_dict': {
|
'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',
|
'id': 'dog-indoor-exercise-winter-1.3928238',
|
||||||
'description': 'md5:c18552e41726ee95bd75210d1ca9194c',
|
'description': 'md5:c18552e41726ee95bd75210d1ca9194c',
|
||||||
},
|
},
|
||||||
@ -273,8 +273,20 @@ class CBCWatchBaseIE(InfoExtractor):
|
|||||||
guid = xpath_text(item, 'guid', fatal=True)
|
guid = xpath_text(item, 'guid', fatal=True)
|
||||||
title = xpath_text(item, 'title', fatal=True)
|
title = xpath_text(item, 'title', fatal=True)
|
||||||
|
|
||||||
media_group = xpath_element(item, _add_ns('media:group'), fatal=True)
|
media_group = xpath_element(item, _add_ns('media:group'), fatal=False)
|
||||||
content = xpath_element(media_group, _add_ns('media:content'), fatal=True)
|
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']
|
content_url = content.attrib['url']
|
||||||
|
|
||||||
thumbnails = []
|
thumbnails = []
|
||||||
|
Loading…
Reference in New Issue
Block a user