[downloader] Fix external downloader selection for m3u8

Closes #239
This commit is contained in:
pukkandan 2021-04-12 22:34:11 +05:30
parent 54670cf084
commit a31953b0e6
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -85,7 +85,7 @@ def get_suitable_downloader(info_dict, params={}, default=HttpFD):
return FFmpegFD return FFmpegFD
elif external_downloader == 'native': elif external_downloader == 'native':
return HlsFD return HlsFD
elif _get_real_downloader(info_dict, 'frag_urls', params, None): elif _get_real_downloader(info_dict, 'm3u8_frag_urls', params, None):
return HlsFD return HlsFD
elif params.get('hls_prefer_native') is True: elif params.get('hls_prefer_native') is True:
return HlsFD return HlsFD