1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-08 01:05:17 +00:00

Add option --download-sections to download video partially

Closes #52, Closes #3932
This commit is contained in:
pukkandan
2022-06-07 01:43:50 +05:30
parent e0ab98541c
commit 5ec1b6b716
7 changed files with 123 additions and 55 deletions

View 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')