diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-05 04:22:37 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-03-05 04:22:37 +0530 |
commit | 9e631877f8011a21967577c0044afca163010fe2 (patch) | |
tree | 4c396e53f6311100e3d9d1a6ae2bbab5fc8f59c4 | |
parent | 36147a63e32a62e61fe032e50249a2de456fa758 (diff) | |
download | hypervideo-pre-9e631877f8011a21967577c0044afca163010fe2.tar.lz hypervideo-pre-9e631877f8011a21967577c0044afca163010fe2.tar.xz hypervideo-pre-9e631877f8011a21967577c0044afca163010fe2.zip |
[downloader] Fix bug for ffmpeg/httpie
Caused by: 7f7de7f94dfeacb0eb78cb9487dfcaf5707da381
-rw-r--r-- | yt_dlp/downloader/external.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/downloader/external.py b/yt_dlp/downloader/external.py index 0e2bbdb86..440603ea3 100644 --- a/yt_dlp/downloader/external.py +++ b/yt_dlp/downloader/external.py @@ -282,8 +282,8 @@ class Aria2cFD(ExternalFD): class HttpieFD(ExternalFD): @classmethod - def available(cls): - return check_executable('http', ['--version']) + def available(cls, path=None): + return check_executable(path or 'http', ['--version']) def _make_cmd(self, tmpfilename, info_dict): cmd = ['http', '--download', '--output', tmpfilename, info_dict['url']] @@ -298,7 +298,7 @@ class FFmpegFD(ExternalFD): SUPPORTED_PROTOCOLS = ('http', 'https', 'ftp', 'ftps', 'm3u8', 'rtsp', 'rtmp', 'mms') @classmethod - def available(cls): + def available(cls, path=None): # path is ignored for ffmpeg return FFmpegPostProcessor().available def _call_downloader(self, tmpfilename, info_dict): |