X-Git-Url: http://git.pippins.net/embedvideo/.git/?a=blobdiff_plain;f=ItemAddEmbedVideo.inc;h=2ba1adf30853a3884883c3e4d30ccdf289c697da;hb=HEAD;hp=820fe6f5f2d0e0ac393698803ee5ac0388c5b92e;hpb=66480d152434ae78c77e1da6ea7af66762b2f440;p=embedvideo%2F.git diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc index 820fe6f..2ba1adf 100644 --- a/ItemAddEmbedVideo.inc +++ b/ItemAddEmbedVideo.inc @@ -578,7 +578,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { $thumbnail=$dailymotionThumbnailUrl.$item_id; /* Format the description to hold a reference to the embedded video */ - if(preg_match('/<.+? value="(.+?)" class=".+?" id="video_player_embed_code_text" \/>/', $contents, $matches)) { + if(preg_match('/embed code:.+? value="(.+?)" /', $contents, $matches)) { $description=$matches[1]; $description=preg_replace("/"/","'",$description); $description=preg_replace("/</","<",$description); @@ -804,7 +804,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { $title=$matches[1]; /* Extract the thumbnail URL from the webpage contents */ - preg_match('/"videothumbnail" href="(.+?)"/i', + preg_match('/"og:image" content="(.+?)"/i', $contents, $matches); $thumbnail=$matches[1];