|
|
@ -27,7 +27,12 @@ from .cache import Cache
|
|
|
|
from .compat import functools, urllib # isort: split
|
|
|
|
from .compat import functools, urllib # isort: split
|
|
|
|
from .compat import compat_os_name, compat_shlex_quote, urllib_req_to_req
|
|
|
|
from .compat import compat_os_name, compat_shlex_quote, urllib_req_to_req
|
|
|
|
from .cookies import LenientSimpleCookie, load_cookies
|
|
|
|
from .cookies import LenientSimpleCookie, load_cookies
|
|
|
|
from .downloader import FFmpegFD, DashSegmentsFD, get_suitable_downloader, shorten_protocol_name
|
|
|
|
from .downloader import (
|
|
|
|
|
|
|
|
DashSegmentsFD,
|
|
|
|
|
|
|
|
FFmpegFD,
|
|
|
|
|
|
|
|
get_suitable_downloader,
|
|
|
|
|
|
|
|
shorten_protocol_name,
|
|
|
|
|
|
|
|
)
|
|
|
|
from .downloader.rtmp import rtmpdump_version
|
|
|
|
from .downloader.rtmp import rtmpdump_version
|
|
|
|
from .extractor import gen_extractor_classes, get_info_extractor
|
|
|
|
from .extractor import gen_extractor_classes, get_info_extractor
|
|
|
|
from .extractor.common import UnsupportedURLIE
|
|
|
|
from .extractor.common import UnsupportedURLIE
|
|
|
@ -3281,7 +3286,7 @@ class YoutubeDL:
|
|
|
|
fd, success = None, True
|
|
|
|
fd, success = None, True
|
|
|
|
if info_dict.get('protocol') or info_dict.get('url'):
|
|
|
|
if info_dict.get('protocol') or info_dict.get('url'):
|
|
|
|
fd = get_suitable_downloader(info_dict, self.params, to_stdout=temp_filename == '-')
|
|
|
|
fd = get_suitable_downloader(info_dict, self.params, to_stdout=temp_filename == '-')
|
|
|
|
if not (fd is FFmpegFD or fd is DashSegmentsFD) and 'no-direct-merge' not in self.params['compat_opts'] and (
|
|
|
|
if fd not in [FFmpegFD, DashSegmentsFD] and 'no-direct-merge' not in self.params['compat_opts'] and (
|
|
|
|
info_dict.get('section_start') or info_dict.get('section_end')):
|
|
|
|
info_dict.get('section_start') or info_dict.get('section_end')):
|
|
|
|
msg = ('This format cannot be partially downloaded' if FFmpegFD.available()
|
|
|
|
msg = ('This format cannot be partially downloaded' if FFmpegFD.available()
|
|
|
|
else 'You have requested downloading the video partially, but ffmpeg is not installed')
|
|
|
|
else 'You have requested downloading the video partially, but ffmpeg is not installed')
|
|
|
|