mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[mtv] Use native hls by default
This commit is contained in:
parent
67fc365b86
commit
cdd11c0540
@ -90,7 +90,8 @@ def _extract_video_formats(self, mdoc, mtvn_id, video_id):
|
|||||||
for rendition in mdoc.findall('.//rendition'):
|
for rendition in mdoc.findall('.//rendition'):
|
||||||
if rendition.get('method') == 'hls':
|
if rendition.get('method') == 'hls':
|
||||||
hls_url = rendition.find('./src').text
|
hls_url = rendition.find('./src').text
|
||||||
formats.extend(self._extract_m3u8_formats(hls_url, video_id, ext='mp4'))
|
formats.extend(self._extract_m3u8_formats(
|
||||||
|
hls_url, video_id, ext='mp4', entry_protocol='m3u8_native'))
|
||||||
else:
|
else:
|
||||||
# fms
|
# fms
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user