Skip to content

Commit

Permalink
Fix checking for skip-download option
Browse files Browse the repository at this point in the history
  • Loading branch information
norkunas committed Jan 12, 2018
1 parent 17c0bad commit 2009bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/YoutubeDl.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private function processDownload(Process $process): Video

@unlink($metadataFile);

if (!$this->options['skip-download']) {
if (!isset($this->options['skip-download']) || false === $this->options['skip-download']) {
if (isset($this->options['extract-audio']) && true === $this->options['extract-audio']) {
$file = $this->findFile($videoData['_filename'], implode('|', $this->allowedAudioFormats));
$videoData['_filename'] = pathinfo($file, PATHINFO_BASENAME);
Expand Down

0 comments on commit 2009bde

Please sign in to comment.