Bug #33089 ยป media_youtube.diff
typo3_src-4.6.3/typo3/sysext/cms/tslib/class.tslib_mediawizardcoreprovider.php 2012-01-10 12:28:48.480329127 +0100 | ||
---|---|---|
*/
|
||
protected $providers = array(
|
||
'youtube',
|
||
'youtu',
|
||
'dailymotion',
|
||
'sevenload',
|
||
'vimeo',
|
||
... | ... | |
// it's a channel
|
||
$parts = explode('/', $url);
|
||
$videoId = $parts[count($parts) - 1];
|
||
} elseif (preg_match('/v=([^(\&|$)]*)/', $url, $matches)) {
|
||
$videoId = $matches[1];
|
||
} elseif (preg_match('/(v=|v\/|.be\/)([^(\&|$)]*)/', $url, $matches)) {
|
||
$videoId = $matches[2];
|
||
}
|
||
if ($videoId) {
|
||
... | ... | |
return $url;
|
||
}
|
||
protected function process_youtu($url) {
|
||
return $this->process_youtube($url);
|
||
}
|
||
/**
|
||
* Parse dailymotion url
|
||
*
|