Commit af99bba4 authored by Seb's avatar Seb
Browse files

code review changes

parent c6b9c2f9
...@@ -6,9 +6,9 @@ from django.core.checks import Warning, register ...@@ -6,9 +6,9 @@ from django.core.checks import Warning, register
from wagtailvideos.utils import ffmpeg_installed from wagtailvideos.utils import ffmpeg_installed
def ffmpeg_check(app_configs, path=None, **kwargs): def ffmpeg_check(app_configs, **kwargs):
messages = [] messages = []
if not ffmpeg_installed(path=path): if not ffmpeg_installed():
messages.append( messages.append(
Warning( Warning(
'ffmpeg could not be found on your system. Transcoding will be disabled', 'ffmpeg could not be found on your system. Transcoding will be disabled',
......
...@@ -7,6 +7,4 @@ except ImportError: ...@@ -7,6 +7,4 @@ except ImportError:
def ffmpeg_installed(path=None): def ffmpeg_installed(path=None):
if which('ffmpeg', path=path) is None: return which('ffmpeg', path=path) is not None
return False
return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment