1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 03:52:56 +08:00

[heise] Further improve RSS download

This commit is contained in:
Kay B 2017-09-18 02:00:29 +02:00
parent 1721d4a846
commit 237794107b

View File

@ -113,13 +113,13 @@ class HeiseIE(InfoExtractor):
episode_str = re.findall(r'[0-9]{1,2}.[0-9]{1,2}', title)
feeds = []
for i, feed in enumerate([
'https://www.heise.de/ct/uplink/ctuplink.rss',
'https://www.heise.de/ct/uplink/ctuplinkvideo.rss',
'https://www.heise.de/ct/uplink/ctuplinkvideohd.rss']):
xml = self._download_xml(feed, video_id,
"Downloading alternative XML (%s)" % (['audio', 'SD video', 'HD video'][i]),
fatal=False)
for path, format_id in (
('', 'audio'),
('video', 'HD video'),
('videohd', 'SD video')):
xml = self._download_xml(
'https://www.heise.de/ct/uplink/ctuplink%s.rss' % path,
video_id, 'Downloading %s feed' % format_id, fatal=False)
if xml is not False:
feeds.append(xml)