]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/downloader/__init__.py
Add option `--download-sections` to download video partially
[yt-dlp.git] / yt_dlp / downloader / __init__.py
index 3b4a826352102c25f00c47380c962ba548a8aee7..a7dc6c9d0ece40d4683bc8686e94bce0f9a3845d 100644 (file)
@@ -84,8 +84,8 @@ def _get_suitable_downloader(info_dict, protocol, params, default):
     if default is NO_DEFAULT:
         default = HttpFD
 
-    # if (info_dict.get('start_time') or info_dict.get('end_time')) and not info_dict.get('requested_formats') and FFmpegFD.can_download(info_dict):
-        return FFmpegFD
+    if (info_dict.get('section_start') or info_dict.get('section_end')) and FFmpegFD.can_download(info_dict):
+        return FFmpegFD
 
     info_dict['protocol'] = protocol
     downloaders = params.get('external_downloader')