Skip to content

Commit

Permalink
Update getvideo.php
Browse files Browse the repository at this point in the history
  • Loading branch information
itseasy21 committed Sep 11, 2014
1 parent 34ff0fb commit c89a2eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion getvideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ function is_chrome(){
} // end of if for type=Download

/* First get the video info page for this video id */
$my_video_info = 'http://www.youtube.com/get_video_info?&video_id='. $my_id;
//$my_video_info = 'http://www.youtube.com/get_video_info?&video_id='. $my_id;
$my_video_info = 'http://www.youtube.com/get_video_info?&video_id='. $my_id.'&asv=3&el=detailpage&hl=en_US'; //video details fix *1
$my_video_info = curlGet($my_video_info);

/* TODO: Check return from curl for status code */
Expand Down Expand Up @@ -301,4 +302,5 @@ function is_chrome(){
}

} // end of else for type not being Download
// *1 = thanks to amit kumar @ bloggertale.com for sharing the fix
?>

0 comments on commit c89a2eb

Please sign in to comment.