[Heise] Add audio rss, resolve url redirects
This commit is contained in:
parent
36d79d4a3d
commit
5da955312c
@ -114,10 +114,13 @@ class HeiseIE(InfoExtractor):
|
|||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
self._download_xml(
|
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)"),
|
video_id, "Downloading alternative XML (SD)"),
|
||||||
self._download_xml(
|
self._download_xml(
|
||||||
'https://blog.ct.de/ctuplink/ctuplinkvideohd.rss',
|
'https://www.heise.de/ct/uplink/ctuplinkvideohd.rss',
|
||||||
video_id, "Downloading alternative XML (HD)")]
|
video_id, "Downloading alternative XML (HD)")]
|
||||||
|
|
||||||
titles = feeds[0].findall('./channel/item/title')
|
titles = feeds[0].findall('./channel/item/title')
|
||||||
@ -137,9 +140,10 @@ class HeiseIE(InfoExtractor):
|
|||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for feed in feeds:
|
for feed in feeds:
|
||||||
|
url = feed.findall('./channel/item/guid')[episode_index].text
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': feed.findall('./channel/item/guid')[episode_index].text,
|
'url': url,
|
||||||
'ext': 'mp4'})
|
'ext': determine_ext(url, '')})
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user