We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4188160 commit cc6a215Copy full SHA for cc6a215
classes/model/webm.php
@@ -35,7 +35,7 @@ public function updateConfig($object)
35
public function processMedia($object, $audio)
36
{
37
if ($audio == false) {
38
- $video = json_decode(shell_exec('ffprobe -v quiet -print_format json -show_streams -select_streams a '.$object->getParam('path')));
+ $video = json_decode(shell_exec($this->preferences->get('foolfuuka.plugins.upload_webm.ffprobe_path').' -v quiet -print_format json -show_streams -select_streams a '.$object->getParam('path')));
39
if (isset($video->streams) && count($video->streams)) {
40
throw new \Foolz\Foolfuuka\Model\MediaInsertInvalidFormatException(_i('The file you uploaded contains an audio stream which is not allowed.'));
41
}
0 commit comments