Skip to content

Commit

Permalink
added https
Browse files Browse the repository at this point in the history
  • Loading branch information
Athlon1600 authored and Athlon1600 committed Jan 30, 2017
1 parent 8ed5c19 commit 33a87a9
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 @@ -137,7 +137,7 @@ private function getInstructions($html){
// check what player version that video is using
if(preg_match('@<script\s*src="([^"]+player[^"]+js)@', $html, $matches)){

$player_url = str_replace('//', 'http://', $matches[1]);
$player_url = str_replace('//', 'https://', $matches[1]);

// try to find instructions list already cached from previous requests...
$file_path = $this->storage_dir.'/'.md5($player_url);
Expand Down

0 comments on commit 33a87a9

Please sign in to comment.