From 01975fd7593eeb363c5a52eb86fa6327cbb615ad Mon Sep 17 00:00:00 2001 From: Carlos Maddela Date: Wed, 2 Mar 2016 04:20:06 +1100 Subject: [PATCH] Stop libav compatibility links from being considered as genuine. Don't register version numbers for compatibility links, so that youtube-dl stops complaining about avconv being outdated. --- youtube_dl/postprocessor/ffmpeg.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 380bc6f29..ea6503d2d 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -85,11 +85,16 @@ class FFmpegPostProcessor(PostProcessor): self._paths = dict( (p, os.path.join(location, p)) for p in programs) self._versions = dict( - (p, get_exe_version(self._paths[p], args=['-version'])) + (p, get_exe_version(self._paths[p], args=['-version'], + version_re=r'%s\s+version\s+([-0-9._a-zA-Z]+)' % p, + unrecognized=False)) for p in programs) if self._versions is None: self._versions = dict( - (p, get_exe_version(p, args=['-version'])) for p in programs) + (p, get_exe_version(p, args=['-version'], + version_re=r'%s\s+version\s+([-0-9._a-zA-Z]+)' % p, + unrecognized=False)) + for p in programs) self._paths = dict((p, p) for p in programs) if prefer_ffmpeg: