Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-28510 repository_youtube Use smaller thumbnails in search results

  • Loading branch information...
commit b3ebbd4fc8bc2f2a6206b419900d9b81069ac93e 1 parent c46c673
Mark Johnson authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  repository/youtube/lib.php
2  repository/youtube/lib.php
@@ -57,7 +57,7 @@ private function _get_collection($keyword, $start, $max, $sort) {
57 57 foreach ($xml->entry as $entry) {
58 58 $media = $entry->children('http://search.yahoo.com/mrss/');
59 59 $title = $media->group->title;
60   - $attrs = $media->group->thumbnail->attributes();
  60 + $attrs = $media->group->thumbnail[2]->attributes();
61 61 $thumbnail = $attrs['url'];
62 62 $arr = explode('/', $entry->id);
63 63 $id = $arr[count($arr)-1];

0 comments on commit b3ebbd4

Please sign in to comment.
Something went wrong with that request. Please try again.