Classes/Eel/YoutubeHelper.php
function data($id)
    {
        if (!$id) {
            return false;
        }
        $data = json_decode(@file_get_contents('https://www.youtube.com/oembed?url=https%3A//youtube.com/watch%3Fv%3D' . $id));
        if (!$data) {
            return false;
        }
        return $data;
    }
function data($id)
    {
        if (!$id) {
            return false;
        }
        $data = json_decode(@file_get_contents('https://www.youtube.com/oembed?url=https%3A//youtube.com/watch%3Fv%3D' . $id));
        if (!$data) {
            return false;
        }
        return $data;
    }
function data ( $ id ) { if ( ! $ id ) { return false ; } $ data = json_decode ( @ file_get_contents ( 'https://www.youtube.com/oembed?url=https%3A//youtube.com/watch%3Fv%3D' . $ id ) ) ; if ( ! $ data ) { return false ; } return $ data ; }
Grab the data of a publicly embeddable video hosted on youtube
@param string $id The "id" of a video
@return mixed The data or false if there's an error
Grab the data of a publicly embeddable video hosted on youtube