Skip to content

Commit

Permalink
Update YouTubeDownloader.php
Browse files Browse the repository at this point in the history
typecast getSigDecodeInstructions to array
  • Loading branch information
Athlon1600 authored Feb 25, 2019
1 parent c6b435a commit cf7f863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/YouTubeDownloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public function decodeSignature($signature, $video_html)
$func_name = $this->getSigDecodeFunctionName($player_html);

// PHP instructions
$instructions = $this->getSigDecodeInstructions($player_html, $func_name);
$instructions = (array)$this->getSigDecodeInstructions($player_html, $func_name);

foreach ($instructions as $opt) {

Expand Down

0 comments on commit cf7f863

Please sign in to comment.