Skip to content

Commit

Permalink
MDL-28510 repository_youtube Use smaller thumbnails in search results
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Johnson authored and samhemelryk committed Aug 2, 2011
1 parent 16321a2 commit b1fc521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/youtube/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private function _get_collection($keyword, $start, $max, $sort) {
foreach ($xml->entry as $entry) {
$media = $entry->children('http://search.yahoo.com/mrss/');
$title = $media->group->title;
$attrs = $media->group->thumbnail->attributes();
$attrs = $media->group->thumbnail[2]->attributes();
$thumbnail = $attrs['url'];
$arr = explode('/', $entry->id);
$id = $arr[count($arr)-1];
Expand Down

0 comments on commit b1fc521

Please sign in to comment.