Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Wagtail Videos
Commits
af99bba4
Commit
af99bba4
authored
Aug 03, 2016
by
Seb
Browse files
code review changes
parent
c6b9c2f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
wagtailvideos/apps.py
View file @
af99bba4
...
@@ -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'
,
...
...
wagtailvideos/utils.py
View file @
af99bba4
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment