Skip to content

Commit

Permalink
https://github.com/YouPHPTube/YouPHPTube/issues/1796
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Jun 29, 2019
1 parent 12a6715 commit 88836c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions objects/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1165,10 +1165,10 @@ static function getTitleFromLink($link) {
$cmd = "LC_ALL=en_US.UTF-8 ". self::getYouTubeDLCommand() . " --no-playlist --force-ipv4 --skip-download -e \"{$link}\"";
exec($cmd . " 2>&1", $output, $return_val);
if ($return_val !== 0) {
error_log("Get Title Error: $cmd \n" . print_r($output, true));
error_log("getTitleFromLink: Get Title Error: $cmd \n" . print_r($output, true));
return false;
} else {
error_log("Get Title: $cmd \n" . print_r($output, true));
error_log("getTitleFromLink: Get Title: $cmd \n" . print_r($output, true));
return end($output);
}
}
Expand Down

0 comments on commit 88836c5

Please sign in to comment.