]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[ffmpeg] Make available a property
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 17 Feb 2015 16:26:41 +0000 (17:26 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 17 Feb 2015 16:26:41 +0000 (17:26 +0100)
youtube_dl/YoutubeDL.py
youtube_dl/postprocessor/ffmpeg.py

index ea2435e0a2ab250460b12a27f91519b3272a59f0..a74e73b0ca0eb151e34cd746bf3e22e785000f6e 100755 (executable)
@@ -1301,7 +1301,7 @@ class YoutubeDL(object):
                     downloaded = []
                     success = True
                     merger = FFmpegMergerPP(self, not self.params.get('keepvideo'))
-                    if not merger.available():
+                    if not merger.available:
                         postprocessors = []
                         self.report_warning('You have requested multiple '
                                             'formats but ffmpeg or avconv are not installed.'
index 16babf6a58be03c13b4be4fa7d6bf05281f28c81..e98fe98340aed0b19b0e6c180a22d869c831ae42 100644 (file)
@@ -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