From 91d6f0cfb6a628ae315a73ec9d91c8b17760eee8 Mon Sep 17 00:00:00 2001 From: Damiano Amatruda Date: Sun, 20 Nov 2022 14:12:30 +0100 Subject: [PATCH] [extractor/generic] Test field 'uploader' in RSS --- yt_dlp/extractor/generic.py | 31 +++++++++++++++++++++++++++---- 1 file changed, 27 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py index 556d9619d5..6d381a5db7 100644 --- a/yt_dlp/extractor/generic.py +++ b/yt_dlp/extractor/generic.py @@ -123,10 +123,13 @@ class GenericIE(InfoExtractor): 'playlist': [{ 'info_dict': { 'ext': 'mov', - 'id': 'pdv_maddow_netcast_mov-12-03-2020-223726', - 'title': 'MSNBC Rachel Maddow (video) - 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) - 11-18-2022-224832', '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': [{ 'info_dict': { 'ext': 'm4a', - 'id': 'c1c879525ce2cb640b344507e682c36d', + 'id': '818a5d38-01cd-152f-2231-ee479677fa82', 'title': 're:Hydrogen!', 'description': 're:.*In this episode we are going.*', 'timestamp': 1567977776, @@ -168,7 +171,27 @@ class GenericIE(InfoExtractor): 'description': 'CGP Grey and Brady Haran talk about YouTube, life, work, whatever.', '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, + 'params': { + 'skip_download': True, + }, }, # RSS feed with guid {