It looks like: http://youtu.be/wPbK9PkSjWI
If you have clipshare grabber, such URL will not work....
However it's easy to set support for such new yt URL.
You should have a file "classes/youtube.class.php", and inside a function:
- Code: Select all
function getVideoID()
{
$position = strpos($this->youtube_url, 'watch?v=')+8;
$remove_length = strlen($this->youtube_url)-$position;
$video_id = substr($this->youtube_url, -$remove_length, 11);
return $video_id;
}
Replace this function with new one:
- Code: Select all
function getVideoID()
{
if(strpos($this->youtube_url,'youtu.be')) {
$position = strpos($this->youtube_url, 'youtu.be/')+9;
} else {
$position = strpos($this->youtube_url, 'watch?v=')+8;
}
$remove_length = strlen($this->youtube_url)-$position;
$video_id = substr($this->youtube_url, -$remove_length, 11);
return $video_id;
}
Now grabber will be able to extract youtube id form both: default and new short URL.