From 31749dd02423f6a8594bfd439259e868a5c7cef0 Mon Sep 17 00:00:00 2001 From: Bastian de Groot Date: Sat, 28 Apr 2018 13:08:16 +0200 Subject: [PATCH] Add test for RSS enclosure prioritization --- youtube_dl/extractor/generic.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 2de74a16b..19c24395a 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -190,6 +190,27 @@ class GenericIE(InfoExtractor): 'title': 'pdv_maddow_netcast_m4v-02-27-2015-201624', } }, + # RSS feed with enclosures and unsupported rss urls + { + 'url': 'http://www.hellointernet.fm/podcast?format=rss', + 'info_dict': { + 'id': 'http://www.hellointernet.fm/podcast?format=rss', + 'description': 'CGP Grey and Brady Haran talk about YouTube, life, work, whatever.', + 'title': 'Hello Internet', + }, + 'playlist': [{ + 'info_dict': { + 'id': '101', + 'ext': 'mp3', + 'upload_date': '20180426', + 'title': u' \u200d \u200d ', + }, + }], + 'playlist_mincount': 99, + 'params': { + 'skip_download': True, + }, + }, # SMIL from http://videolectures.net/promogram_igor_mekjavic_eng { 'url': 'http://videolectures.net/promogram_igor_mekjavic_eng/video/1/smil.xml',