From 5da955312c35454c4eeee00440a14ff03d46f48d Mon Sep 17 00:00:00 2001 From: Kay B <> Date: Sun, 17 Sep 2017 23:42:38 +0200 Subject: [PATCH] [Heise] Add audio rss, resolve url redirects --- youtube_dl/extractor/heise.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/youtube_dl/extractor/heise.py b/youtube_dl/extractor/heise.py index 991e6520c..7124019df 100644 --- a/youtube_dl/extractor/heise.py +++ b/youtube_dl/extractor/heise.py @@ -114,10 +114,13 @@ class HeiseIE(InfoExtractor): feeds = [ self._download_xml( - 'https://blog.ct.de/ctuplink/ctuplinkvideo.rss', + 'https://www.heise.de/ct/uplink/ctuplink.rss', + video_id, "Downloading alternative XML (audio)"), + self._download_xml( + 'https://www.heise.de/ct/uplink/ctuplinkvideo.rss', video_id, "Downloading alternative XML (SD)"), self._download_xml( - 'https://blog.ct.de/ctuplink/ctuplinkvideohd.rss', + 'https://www.heise.de/ct/uplink/ctuplinkvideohd.rss', video_id, "Downloading alternative XML (HD)")] titles = feeds[0].findall('./channel/item/title') @@ -131,15 +134,16 @@ class HeiseIE(InfoExtractor): episode_index = index break - # in case episode not found at all + # in case episode not found at all if episode_index == -1: return formats = [] for feed in feeds: + url = feed.findall('./channel/item/guid')[episode_index].text formats.append({ - 'url': feed.findall('./channel/item/guid')[episode_index].text, - 'ext': 'mp4'}) + 'url': url, + 'ext': determine_ext(url, '')}) self._sort_formats(formats)