Commit 6561da64 authored by SeeBeyond's avatar SeeBeyond

copying from S.O. moment (fix thumnail SSL)

parent 31a1cf42
......@@ -127,7 +127,7 @@ class SongSpinPlay
function fetch_highest_res($videoid) {
$resolutions = array('maxresdefault', 'hqdefault', 'mqdefault');
foreach($resolutions as $res) {
$imgUrl = "http://i.ytimg.com/vi/$videoid/$res.jpg";
$imgUrl = "https://i.ytimg.com/vi/$videoid/$res.jpg";
if(@getimagesize(($imgUrl)))
return $imgUrl;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment