aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-10-26 21:00:42 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-10-26 21:00:42 +0100
commit6194bb1419842e908a5694b8f9a666ba97d3ac9c (patch)
treee8c86dd4c1df5ddf9f9df450cdf871075af214b2 /youtube_dl
parent37d66e7f1e5d325802781c69042571968afa1da0 (diff)
[ffmpeg] Make downloader optional (Fixes #4039)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index 19fc135dc..4b93556af 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -42,7 +42,7 @@ class FFmpegPostProcessorError(PostProcessingError):
class FFmpegPostProcessor(PostProcessor):
- def __init__(self, downloader, deletetempfiles=False):
+ def __init__(self, downloader=None, deletetempfiles=False):
PostProcessor.__init__(self, downloader)
self._versions = self.get_versions()
self._deletetempfiles = deletetempfiles
@@ -56,7 +56,8 @@ class FFmpegPostProcessor(PostProcessor):
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.' % (
self._executable, self._executable, REQUIRED_VERSION)
- self._downloader.report_warning(warning)
+ if self._downloader:
+ self._downloader.report_warning(warning)
@staticmethod
def get_versions():