Example #1
0
 /**
  * Set the thumbnail location
  */
 protected function set_thumbnail_loc()
 {
     switch ($this->retrieve_method) {
         case 'oembed':
             parent::set_thumbnail_loc();
             break;
         case 'rss':
             if (preg_match('`<media:thumbnail url="([^"]+)"/>`', $this->decoded_response, $match)) {
                 $image = $this->make_image_local($match[1]);
                 if (is_string($image) && $image !== '') {
                     $this->vid['thumbnail_loc'] = $image;
                 }
             }
             break;
     }
 }