X-Git-Url: http://git.pippins.net/embedvideo/.git/static/git-logo.png?a=blobdiff_plain;f=ItemAddEmbedVideo.inc;h=ac3f12ad3d83091c4ea61e318440e957614ef3e7;hb=8870ef4a2301f397d4b71da6ac25f4e2e5564199;hp=69ee24dbd4ef0740c728f01976db142b6f1e53b9;hpb=653677bb9ae1936fab463406830f01443a2e674f;p=embedvideo%2F.git diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc index 69ee24d..ac3f12a 100644 --- a/ItemAddEmbedVideo.inc +++ b/ItemAddEmbedVideo.inc @@ -34,7 +34,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { * @see ItemAddPlugin::handleRequest */ function handleRequest($form, &$item) { - global $gallery; + global $gallery, $url; $status = $error = array(); @@ -568,7 +568,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { } /* Extract the summary from the webpage contents */ - preg_match('/
(.+?)<\/div>/i', $contents, $matches); + preg_match('/
(.+?)<\/div>/i', $contents, $matches); $summary=$matches[1]; /* Extract the title from the webpage contents */ @@ -579,7 +579,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { $thumbnail=$dailymotionThumbnailUrl.$item_id; /* Format the description to hold a reference to the embedded video */ - if(preg_match('/Embeddable Player:.+?value="(.+?)"/', $contents, $matches)) { + if(preg_match('/