mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-24 05:36:56 +01:00
[drtv] Make HLS and HDS extraction non fatal
This commit is contained in:
parent
f2bb33a986
commit
9a0942ad55
@ -118,7 +118,7 @@ def _real_extract(self, url):
|
|||||||
if target == 'HDS':
|
if target == 'HDS':
|
||||||
f4m_formats = self._extract_f4m_formats(
|
f4m_formats = self._extract_f4m_formats(
|
||||||
uri + '?hdcore=3.3.0&plugin=aasp-3.3.0.99.43',
|
uri + '?hdcore=3.3.0&plugin=aasp-3.3.0.99.43',
|
||||||
video_id, preference, f4m_id=format_id)
|
video_id, preference, f4m_id=format_id, fatal=False)
|
||||||
if kind == 'AudioResource':
|
if kind == 'AudioResource':
|
||||||
for f in f4m_formats:
|
for f in f4m_formats:
|
||||||
f['vcodec'] = 'none'
|
f['vcodec'] = 'none'
|
||||||
@ -126,7 +126,8 @@ def _real_extract(self, url):
|
|||||||
elif target == 'HLS':
|
elif target == 'HLS':
|
||||||
formats.extend(self._extract_m3u8_formats(
|
formats.extend(self._extract_m3u8_formats(
|
||||||
uri, video_id, 'mp4', entry_protocol='m3u8_native',
|
uri, video_id, 'mp4', entry_protocol='m3u8_native',
|
||||||
preference=preference, m3u8_id=format_id))
|
preference=preference, m3u8_id=format_id,
|
||||||
|
fatal=False))
|
||||||
else:
|
else:
|
||||||
bitrate = link.get('Bitrate')
|
bitrate = link.get('Bitrate')
|
||||||
if bitrate:
|
if bitrate:
|
||||||
|
Loading…
Reference in New Issue
Block a user