]> jfr.im git - yt-dlp.git/commitdiff
[downloader] Fix downloader selection for m3u8
authorpukkandan <redacted>
Wed, 14 Apr 2021 04:27:48 +0000 (09:57 +0530)
committerpukkandan <redacted>
Wed, 14 Apr 2021 06:55:42 +0000 (12:25 +0530)
Bug introduced by: 52a8a1e1b93dbc88f0018d4842f1e90ba96e095f and a31953b0e69f710f737643cb36b0ca1caf69e04c

yt_dlp/downloader/__init__.py

index 3519982241c69546e863d5421d4af515b2f958d1..510c7b60140054619464d0bee70eacc68431d0e3 100644 (file)
@@ -80,7 +80,7 @@ def get_suitable_downloader(info_dict, params={}, default=HttpFD):
         if ed.can_download(info_dict, external_downloader):
             return ed
 
-    if protocol.startswith('m3u8'):
+    if protocol in ('m3u8', 'm3u8_native'):
         if info_dict.get('is_live'):
             return FFmpegFD
         elif external_downloader == 'native':