mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 06:42:52 +08:00
[heise] Further improve RSS download
This commit is contained in:
parent
1721d4a846
commit
237794107b
@ -113,13 +113,13 @@ class HeiseIE(InfoExtractor):
|
|||||||
episode_str = re.findall(r'[0-9]{1,2}.[0-9]{1,2}', title)
|
episode_str = re.findall(r'[0-9]{1,2}.[0-9]{1,2}', title)
|
||||||
|
|
||||||
feeds = []
|
feeds = []
|
||||||
for i, feed in enumerate([
|
for path, format_id in (
|
||||||
'https://www.heise.de/ct/uplink/ctuplink.rss',
|
('', 'audio'),
|
||||||
'https://www.heise.de/ct/uplink/ctuplinkvideo.rss',
|
('video', 'HD video'),
|
||||||
'https://www.heise.de/ct/uplink/ctuplinkvideohd.rss']):
|
('videohd', 'SD video')):
|
||||||
xml = self._download_xml(feed, video_id,
|
xml = self._download_xml(
|
||||||
"Downloading alternative XML (%s)" % (['audio', 'SD video', 'HD video'][i]),
|
'https://www.heise.de/ct/uplink/ctuplink%s.rss' % path,
|
||||||
fatal=False)
|
video_id, 'Downloading %s feed' % format_id, fatal=False)
|
||||||
if xml is not False:
|
if xml is not False:
|
||||||
feeds.append(xml)
|
feeds.append(xml)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user