mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 09:10:09 +01:00
[ffmpeg] Remove trivial helper method
This commit is contained in:
parent
f740fae2a4
commit
65bf37ef83
@ -37,7 +37,7 @@ def check_version(self):
|
|||||||
if not self.available:
|
if not self.available:
|
||||||
raise FFmpegPostProcessorError('ffmpeg or avconv not found. Please install one.')
|
raise FFmpegPostProcessorError('ffmpeg or avconv not found. Please install one.')
|
||||||
|
|
||||||
required_version = '10-0' if self._uses_avconv() else '1.0'
|
required_version = '10-0' if self.basename == 'avconv' else '1.0'
|
||||||
if is_outdated_version(
|
if is_outdated_version(
|
||||||
self._versions[self.basename], required_version):
|
self._versions[self.basename], required_version):
|
||||||
warning = 'Your copy of %s is outdated, update %s to version %s or newer if you encounter any errors.' % (
|
warning = 'Your copy of %s is outdated, update %s to version %s or newer if you encounter any errors.' % (
|
||||||
@ -112,9 +112,6 @@ def _determine_executables(self):
|
|||||||
def available(self):
|
def available(self):
|
||||||
return self.basename is not None
|
return self.basename is not None
|
||||||
|
|
||||||
def _uses_avconv(self):
|
|
||||||
return self.basename == 'avconv'
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def executable(self):
|
def executable(self):
|
||||||
return self._paths[self.basename]
|
return self._paths[self.basename]
|
||||||
|
Loading…
Reference in New Issue
Block a user