[extractor] Always prefer native hls downloader by default
When the manifest is not downloadable by native downloader, it already is able to detect it and switch to `ffmpeg`. So there doesn't seem to be a reason anymore to use ffmpeg as the preferred downloader
This commit is contained in:
parent
b25522ba52
commit
177877c544
5 changed files with 450 additions and 454 deletions
|
|
@ -47,8 +47,7 @@ class WhoWatchIE(InfoExtractor):
|
|||
|
||||
if hls_url:
|
||||
hls_fmts = self._extract_m3u8_formats(
|
||||
hls_url, video_id, ext='mp4', entry_protocol='m3u8',
|
||||
m3u8_id='hls-%s' % name, quality=quality)
|
||||
hls_url, video_id, ext='mp4', m3u8_id='hls-%s' % name, quality=quality)
|
||||
formats.extend(hls_fmts)
|
||||
else:
|
||||
hls_fmts = []
|
||||
|
|
@ -71,8 +70,7 @@ class WhoWatchIE(InfoExtractor):
|
|||
|
||||
# This contains the same formats as the above manifests and is used only as a fallback
|
||||
formats.extend(self._extract_m3u8_formats(
|
||||
hls_url, video_id, ext='mp4', entry_protocol='m3u8',
|
||||
m3u8_id='hls'))
|
||||
hls_url, video_id, ext='mp4', m3u8_id='hls'))
|
||||
self._remove_duplicate_formats(formats)
|
||||
self._sort_formats(formats)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue