mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 11:20:41 +00:00
[spiegeltv] Skip invalid m3u8 manifests (closes #6157)
This commit is contained in:
parent
13af92fdc4
commit
59a83d3e5b
@ -77,11 +77,13 @@ class SpiegeltvIE(InfoExtractor):
|
|||||||
'rtmp_live': True,
|
'rtmp_live': True,
|
||||||
})
|
})
|
||||||
elif determine_ext(endpoint) == 'm3u8':
|
elif determine_ext(endpoint) == 'm3u8':
|
||||||
formats.extend(self._extract_m3u8_formats(
|
m3u8_formats = self._extract_m3u8_formats(
|
||||||
endpoint.replace('[video]', play_path),
|
endpoint.replace('[video]', play_path),
|
||||||
video_id, 'm4v',
|
video_id, 'm4v',
|
||||||
preference=1, # Prefer hls since it allows to workaround georestriction
|
preference=1, # Prefer hls since it allows to workaround georestriction
|
||||||
m3u8_id='hls'))
|
m3u8_id='hls', fatal=False)
|
||||||
|
if m3u8_formats is not False:
|
||||||
|
formats.extend(m3u8_formats)
|
||||||
else:
|
else:
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': endpoint,
|
'url': endpoint,
|
||||||
|
Loading…
Reference in New Issue
Block a user