aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/postprocessor
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-17 17:26:41 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-17 17:26:41 +0100
commitf740fae2a418ce6c1d229890b48730d257a80dee (patch)
tree33769e442ec7ad3cfa47e77fde2495a2788a3297 /youtube_dl/postprocessor
parent85729c51afad484ef784faf5d82bad8acab77d5e (diff)
[ffmpeg] Make available a property
Diffstat (limited to 'youtube_dl/postprocessor')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index 16babf6a5..e98fe9834 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -34,7 +34,7 @@ class FFmpegPostProcessor(PostProcessor):
self._determine_executables()
def check_version(self):
- if not self.available():
+ if not self.available:
raise FFmpegPostProcessorError('ffmpeg or avconv not found. Please install one.')
required_version = '10-0' if self._uses_avconv() else '1.0'
@@ -108,6 +108,7 @@ class FFmpegPostProcessor(PostProcessor):
self.probe_basename = p
break
+ @property
def available(self):
return self.basename is not None