edap/cakePHP-youtube-datasource — pull request #3 by ecoreng (2013-05-04 18:27:12+00:00)
Title: Fixed getting of thumbnails

It gets all of the thumbnails for the video [default, mqdefault, hqdefault, sddefault] < the last one doesnt show up for older videos.. but when it does it messes with the array keys fixed that where there previously when getting the video progress thumbnails.. so now it sets an "image" key in the return array with the default image, and sets all of the thumbnails that youtube api sends in multidimensional arrays like this:

array(7) {
["image"]=>
string(45) "http://i.ytimg.com/vi/wKEe3otWstM/default.jpg"
["title"]=>
string(25) "DIY Printed circuit board"
["id"]=>
string(11) "wKEe3otWstM"
["author"]=>
string(16) "AP Digital light"
["thumbs"]=>
array(2) {
["default"]=>
array(3) {
[0]=>
string(45) "http://i.ytimg.com/vi/wKEe3otWstM/default.jpg"
[1]=>
string(47) "http://i.ytimg.com/vi/wKEe3otWstM/mqdefault.jpg"
[2]=>
string(47) "http://i.ytimg.com/vi/wKEe3otWstM/hqdefault.jpg"
[3]=>
string(47) "http://i.ytimg.com/vi/wKEe3otWstM/sddefault.jpg"
}
["video"]=>
array(3) {
[0]=>
string(39) "http://i.ytimg.com/vi/wKEe3otWstM/1.jpg"
[1]=>
string(39) "http://i.ytimg.com/vi/wKEe3otWstM/2.jpg"
[2]=>
string(39) "http://i.ytimg.com/vi/wKEe3otWstM/3.jpg"
}
}
["description"]=>
string(361) "My personal experience with heat toner transfer method of making PCB.
All chemicals used in PCB manufacturing should be available at electronic hobby shop or can be found online.
There's list of product distributors at manufacturer's web site
http://www.mgchemicals.com/distributors/index.html
My DIY tutorials and fun projects at
http://www.apdigitallight.com/"
["player"]=>
string(74) "https://www.youtube.com/v/wKEe3otWstM?version=3&f=videos&app=youtube_gdata"
}

also added the description and the bare player url sent by the api if the user wants to save it and embed it later or w/e