aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/generic.py
diff options
context:
space:
mode:
authorrenalid <renalid@gmail.com>2020-12-06 16:12:25 +0100
committerGitHub <noreply@github.com>2020-12-06 22:12:25 +0700
commitcc017e07ca1ce70740f45620f2bceb1b0ac25eb2 (patch)
treea08880b96b1ce72f6d45d26ce589b56502faca49 /youtube_dl/extractor/generic.py
parent082da364166b5e33e1aa3ff643a177c0456b43e6 (diff)
downloadyoutube-dl-cc017e07ca1ce70740f45620f2bceb1b0ac25eb2.tar.xz
[generic] Extract RSS video description (#27177)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r--youtube_dl/extractor/generic.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index f10f11244..8ed2789d0 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -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
{
@@ -2199,6 +2207,7 @@ class GenericIE(InfoExtractor):
'_type': 'url_transparent',
'url': next_url,
'title': it.find('title').text,
+ 'description': xpath_text(it, 'description', default=None),
})
return {