mirror of
https://github.com/blw1138/Zordon.git
synced 2025-12-17 16:58:12 +00:00
Rename get_formats to get_output_formats for engines
This commit is contained in:
@@ -25,19 +25,12 @@ class FFMPEG(BaseRenderEngine):
|
||||
return encoders
|
||||
|
||||
@classmethod
|
||||
def get_formats(cls):
|
||||
def get_output_formats(cls):
|
||||
formats_raw = subprocess.check_output([cls.renderer_path(), '-formats'], stderr=subprocess.DEVNULL).decode('utf-8')
|
||||
pattern = '(?P<type>[DE]{1,2})\s+(?P<name>\S{2,})\s+(?P<description>.*)'
|
||||
formats = [m.groupdict() for m in re.finditer(pattern, formats_raw)]
|
||||
return formats
|
||||
|
||||
@classmethod
|
||||
def full_report(cls):
|
||||
return {'version': cls.version(),
|
||||
'help_text': cls.get_help(),
|
||||
'encoders': cls.get_encoders(),
|
||||
'formats': cls.get_formats()}
|
||||
|
||||
|
||||
class FFMPEGRenderWorker(BaseRenderWorker):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user