diff --git a/bridges/GolemBridge.php b/bridges/GolemBridge.php index 216e913f0f2..b52d3c2f469 100644 --- a/bridges/GolemBridge.php +++ b/bridges/GolemBridge.php @@ -119,6 +119,16 @@ private function extractContent($page) } } + //built golem videos + foreach ($article->find('.gvideofig') as &$embedcontent) { + if (preg_match('/gvideo_(.*)/', $embedcontent->id, $videoid)) { + $embedcontent->innertext .= << + EOT; + } + } + // delete known bad elements foreach ( $article->find('div[id*="adtile"], #job-market, #seminars, iframe, @@ -142,7 +152,7 @@ private function extractContent($page) $img->src = $img->getAttribute('data-src-full'); } - foreach ($content->find('p, h1, h2, h3, img[src*="."], iframe') as $element) { + foreach ($content->find('p, h1, h2, h3, img[src*="."], iframe, video') as $element) { $item .= $element; }