diff --git a/bridges/CaschyBridge.php b/bridges/CaschyBridge.php index 03b1ecf9b95..a04c855be12 100644 --- a/bridges/CaschyBridge.php +++ b/bridges/CaschyBridge.php @@ -59,6 +59,16 @@ private function addArticleToItem($item, $article) ) { $element->remove(); } + + foreach ($article->find('.video-container') as &$ytvideo) { + if (str_contains($ytvideo->innertext, 'youtube.com')) { + $ytResult = handleYoutube($ytvideo->innertext); + if ($ytResult) { + $ytvideo->innertext = $ytResult; + } + } + } + // reload html, as remove() is buggy $article = str_get_html($article->outertext);