/** * Set the video duration */ protected function set_duration() { switch ($this->retrieve_method) { case 'oembed': parent::set_duration(); break; case 'rss': if (preg_match('`<blip:runtime>(\\d+)</blip:runtime>`', $this->decoded_response, $match)) { $this->vid['duration'] = $match[1]; } break; } }