Skip to content

Commit

Permalink
Fix eyecatchup#14 for windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
bascoder committed Mar 26, 2016
1 parent 48d9a60 commit b3b928a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions youtube-dl.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,11 @@ private function valid_dir($dir)
*/
private function has_ffmpeg()
{
$sh = `which ffmpeg`;
return (bool) (strlen(trim($sh)) > 0);
// check if ffmpeg is installed using returnVariable on help command
$returnVar = false;
$out = array();
exec('ffmpeg -h', $out, $returnVar);
return $returnVar === 0;
}

/**
Expand Down

0 comments on commit b3b928a

Please sign in to comment.