$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);
$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];