Skip to content

Commit

Permalink
[generic] Extract RSS video description (#27177)
Browse files Browse the repository at this point in the history
  • Loading branch information
renalid authored Dec 6, 2020
1 parent 082da36 commit cc017e0
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions youtube_dl/extractor/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,19 @@ class GenericIE(InfoExtractor):
{
'url': 'http://podcastfeeds.nbcnews.com/audio/podcast/MSNBC-MADDOW-NETCAST-M4V.xml',
'info_dict': {
'id': 'pdv_maddow_netcast_m4v-02-27-2015-201624',
'ext': 'm4v',
'upload_date': '20150228',
'title': 'pdv_maddow_netcast_m4v-02-27-2015-201624',
}
'id': 'http://podcastfeeds.nbcnews.com/nbcnews/video/podcast/MSNBC-MADDOW-NETCAST-M4V.xml',
'title': 'MSNBC Rachel Maddow (video)',
'description': 're:.*her unique approach to storytelling.*',
},
'playlist': [{
'info_dict': {
'ext': 'mov',
'id': 'pdv_maddow_netcast_mov-12-03-2020-223726',
'title': 'MSNBC Rachel Maddow (video) - 12-03-2020-223726',
'description': 're:.*her unique approach to storytelling.*',
'upload_date': '20201204',
},
}],
},
# RSS feed with enclosures and unsupported link URLs
{
Expand Down Expand Up @@ -2199,6 +2207,7 @@ def _extract_rss(self, url, video_id, doc):
'_type': 'url_transparent',
'url': next_url,
'title': it.find('title').text,
'description': xpath_text(it, 'description', default=None),
})

return {
Expand Down

0 comments on commit cc017e0

Please sign in to comment.