Tools that are search for at startup are now categorized in required and optional.
This commit is contained in:
@@ -26,11 +26,15 @@ from shutil import copyfile, which
|
|||||||
|
|
||||||
def checkRequiredTools():
|
def checkRequiredTools():
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
tools = ['ffmpeg', 'ffprobe', 'mkvmerge']
|
required = ['ffmpeg', 'ffprobe', 'mkvmerge']
|
||||||
for tool in tools:
|
optional = ['mkvextract', 'vobusbocr']
|
||||||
|
for tool in required:
|
||||||
if which(tool) == None:
|
if which(tool) == None:
|
||||||
logger.error('Required tool: %s is missing.' % tool)
|
logger.error('Required tool: %s is missing.' % tool)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
for tool in optional:
|
||||||
|
if which(tool) == None:
|
||||||
|
logger.info('Optional tool: %s is missing.' % tool)
|
||||||
|
|
||||||
|
|
||||||
@unique
|
@unique
|
||||||
|
|||||||
Reference in New Issue
Block a user