[extractor/generic] Test field 'uploader' in RSS

This commit is contained in:
Damiano Amatruda 2022-11-20 14:12:30 +01:00
parent b52c912a45
commit 91d6f0cfb6
No known key found for this signature in database
GPG Key ID: 246FB54CAB37CD38

View File

@ -123,10 +123,13 @@ class GenericIE(InfoExtractor):
'playlist': [{ 'playlist': [{
'info_dict': { 'info_dict': {
'ext': 'mov', 'ext': 'mov',
'id': 'pdv_maddow_netcast_mov-12-03-2020-223726', 'id': 'https://nbcnewsencoding.akamaized.net/nbcnews/video/podcast/pdv_maddow_netcast_mov-11-18-2022-224832.mov',
'title': 'MSNBC Rachel Maddow (video) - 12-03-2020-223726', 'title': 'MSNBC Rachel Maddow (video) - 11-18-2022-224832',
'description': 're:.*her unique approach to storytelling.*', 'description': 're:.*her unique approach to storytelling.*',
'upload_date': '20201204', 'upload_date': '20221119',
'direct': True,
'duration': 1152.0,
'timestamp': 1668826112.0,
}, },
}], }],
}, },
@ -141,7 +144,7 @@ class GenericIE(InfoExtractor):
'playlist': [{ 'playlist': [{
'info_dict': { 'info_dict': {
'ext': 'm4a', 'ext': 'm4a',
'id': 'c1c879525ce2cb640b344507e682c36d', 'id': '818a5d38-01cd-152f-2231-ee479677fa82',
'title': 're:Hydrogen!', 'title': 're:Hydrogen!',
'description': 're:.*In this episode we are going.*', 'description': 're:.*In this episode we are going.*',
'timestamp': 1567977776, 'timestamp': 1567977776,
@ -168,7 +171,27 @@ class GenericIE(InfoExtractor):
'description': 'CGP Grey and Brady Haran talk about YouTube, life, work, whatever.', 'description': 'CGP Grey and Brady Haran talk about YouTube, life, work, whatever.',
'title': 'Hello Internet', 'title': 'Hello Internet',
}, },
'playlist': [{
'info_dict': {
'ext': 'mp3',
'id': '52d66949e4b0a8cec3bcdd46:52d67282e4b0cca8969714fa:5e58de8a37459e0d069efda0',
'title': 'H.I. #136: Dog Bingo',
'description': 'md5:8e5d0bc18204a1451d5e32937ecf7d6d',
'thumbnail': 'https://images.squarespace-cdn.com/content/v1/52d66949e4b0a8cec3bcdd46/1582882549057-1XW68A67UR858INW8IW5/HI+slides.002.png?format=1500w',
'timestamp': 1582884807.0,
'episode': 'H.I. #136: Dog Bingo',
'episode_number': 136,
'age_limit': 0,
'duration': 4914.0,
'upload_date': '20200228',
'direct': True,
'uploader': 'Hello Internet',
},
}],
'playlist_mincount': 100, 'playlist_mincount': 100,
'params': {
'skip_download': True,
},
}, },
# RSS feed with guid # RSS feed with guid
{ {