diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-05-11 00:26:39 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-05-11 00:26:39 +0600 |
commit | 70484b9f8ae629ccb87e8c0569f8f4bf2dfdb0ac (patch) | |
tree | 2f0fbbce4adebbdb801641420b408c89e64e0cb1 /youtube_dl | |
parent | 69b46b3d956220e4b3a3d5eda55768753a67f19d (diff) |
[postprocessor/ffmpeg] Extract `check_outdated` method
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/postprocessor/ffmpeg.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 214de39f9..211faf69a 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -36,7 +36,9 @@ class FFmpegPostProcessor(PostProcessor): def check_version(self): if not self.available: raise FFmpegPostProcessorError('ffmpeg or avconv not found. Please install one.') + self.check_outdated() + def check_outdated(self): required_version = '10-0' if self.basename == 'avconv' else '1.0' if is_outdated_version( self._versions[self.basename], required_version): @@ -44,6 +46,8 @@ class FFmpegPostProcessor(PostProcessor): self.basename, self.basename, required_version) if self._downloader: self._downloader.report_warning(warning) + return True + return False @staticmethod def get_versions(downloader=None): |