[lifepress] Youtube Embeds Suddenly Not Working (fix)

5 views
Skip to first unread message

Mitchell McKenna

unread,
May 10, 2010, 3:16:24 AM5/10/10
to Lifepress
Last week (likely to do with all the small changes their making to the
youtube player) all my embedded youtube videos stopped working. I
looked into and wanted to share this in case anyone else ran into this
problem.

Youtube changed it so that embedding with http://youtube.com/watch/v/[youtube
code] no longer works, you need to remove the "watch/" part.
I was able to do that by simply removing it in the youtube_com.php
plugin using...
$link = str_replace('watch/', '', $link);

before:
function pre_display($item){
$link = $item->item_data['permalink'];
$link = str_replace('?v=', '/v/', $link);

after:
function pre_display($item){
$link = $item->item_data['permalink'];
$link = str_replace('?v=', '/v/', $link);
$link = str_replace('watch/', '', $link);

Carsten

unread,
May 10, 2010, 3:58:02 AM5/10/10
to Lifepress
On 10 Mai, 09:16, Mitchell McKenna <mitchellmcke...@gmail.com> wrote:
> Youtube changed it so that embedding withhttp://youtube.com/watch/v/[youtube
> code] no longer works, you need to remove the "watch/" part.
> I was able to do that by simply removing it in the youtube_com.php
> plugin using...
Cool!

I opened a tracker issue for this http://code.google.com/p/lifepress/issues/detail?id=20
and will include it into the next version.

Carsten

unread,
May 11, 2010, 1:45:37 AM5/11/10
to Lifepress
I tried to verify this issue yesterday, but the random feed I pulled
from youtube displayed videos just fine.

Can you get back to the tracker issue and add some more information
(feed URL) to it please?
Reply all
Reply to author
Forward
0 new messages