mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 02:32:44 +01:00
[spiegeltv] Do not extract m3u8 formats since it's already a format
This commit is contained in:
parent
0198807ef9
commit
50f01302d3
@ -77,17 +77,16 @@ def _real_extract(self, url):
|
|||||||
'rtmp_live': True,
|
'rtmp_live': True,
|
||||||
})
|
})
|
||||||
elif determine_ext(endpoint) == 'm3u8':
|
elif determine_ext(endpoint) == 'm3u8':
|
||||||
m3u8_formats = self._extract_m3u8_formats(
|
formats.append({
|
||||||
endpoint.replace('[video]', play_path),
|
'url': endpoint.replace('[video]', play_path),
|
||||||
video_id, 'm4v',
|
'ext': 'm4v',
|
||||||
preference=1, # Prefer hls since it allows to workaround georestriction
|
'format_id': 'hls', # Prefer hls since it allows to workaround georestriction
|
||||||
m3u8_id='hls', fatal=False)
|
'protocol': 'm3u8',
|
||||||
if m3u8_formats is not False:
|
'preference': 1,
|
||||||
for m3u8_format in m3u8_formats:
|
'http_headers': {
|
||||||
m3u8_format['http_headers'] = {
|
'Accept-Encoding': 'deflate', # gzip causes trouble on the server side
|
||||||
'Accept-Encoding': 'deflate', # gzip causes trouble on the server side
|
},
|
||||||
}
|
})
|
||||||
formats.extend(m3u8_formats)
|
|
||||||
else:
|
else:
|
||||||
formats.append({
|
formats.append({
|
||||||
'url': endpoint,
|
'url': endpoint,
|
||||||
|
Loading…
Reference in New Issue
Block a user