mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-15 13:55:38 +00:00
[ffmpeg] Make downloader optional (Fixes #4039)
This commit is contained in:
parent
37d66e7f1e
commit
6194bb1419
1 changed files with 3 additions and 2 deletions
|
@ -42,7 +42,7 @@ class FFmpegPostProcessorError(PostProcessingError):
|
||||||
|
|
||||||
|
|
||||||
class FFmpegPostProcessor(PostProcessor):
|
class FFmpegPostProcessor(PostProcessor):
|
||||||
def __init__(self, downloader, deletetempfiles=False):
|
def __init__(self, downloader=None, deletetempfiles=False):
|
||||||
PostProcessor.__init__(self, downloader)
|
PostProcessor.__init__(self, downloader)
|
||||||
self._versions = self.get_versions()
|
self._versions = self.get_versions()
|
||||||
self._deletetempfiles = deletetempfiles
|
self._deletetempfiles = deletetempfiles
|
||||||
|
@ -56,6 +56,7 @@ class FFmpegPostProcessor(PostProcessor):
|
||||||
self._versions[self._executable], REQUIRED_VERSION):
|
self._versions[self._executable], REQUIRED_VERSION):
|
||||||
warning = u'Your copy of %s is outdated, update %s to version %s or newer if you encounter any errors.' % (
|
warning = u'Your copy of %s is outdated, update %s to version %s or newer if you encounter any errors.' % (
|
||||||
self._executable, self._executable, REQUIRED_VERSION)
|
self._executable, self._executable, REQUIRED_VERSION)
|
||||||
|
if self._downloader:
|
||||||
self._downloader.report_warning(warning)
|
self._downloader.report_warning(warning)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in a new issue