make mediainfo detection work on win and mac.

This commit is contained in:
Tomas Groth 2016-05-05 20:17:45 +02:00
parent 907282d3cd
commit 26e72a1fec
1 changed files with 6 additions and 2 deletions

View File

@ -71,8 +71,12 @@ class MediaPlugin(Plugin):
:return: true or false
"""
log.debug('check_installed Mediainfo')
# Use the user defined program if given
return process_check_binary('mediainfo')
# Try to find mediainfo in the path
exists = process_check_binary('mediainfo')
# If mediainfo is not in the path, try to find it in the application folder
if not exists:
exists = process_check_binary(os.path.join(AppLocation.get_directory(AppLocation.AppDir), 'mediainfo'))
return exists
def app_startup(self):
"""