From 7899bace1c05f222826e41a3e0ca449b05c5454a Mon Sep 17 00:00:00 2001 From: Tone <66808319+Tone866@users.noreply.github.com> Date: Fri, 27 Mar 2026 09:59:26 +0100 Subject: [PATCH 1/4] [CaschyBridge] add handleYoutube --- bridges/CaschyBridge.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bridges/CaschyBridge.php b/bridges/CaschyBridge.php index 03b1ecf9b95..40ca0fbabca 100644 --- a/bridges/CaschyBridge.php +++ b/bridges/CaschyBridge.php @@ -59,6 +59,12 @@ private function addArticleToItem($item, $article) ) { $element->remove(); } + + foreach ($article->find('.video-container') as &$ytvideo) { + $ytResult = handleYoutube($ytvideo->innertext); + if ($ytResult) + $ytvideo->innertext = $ytResult; + // reload html, as remove() is buggy $article = str_get_html($article->outertext); From 59925c608840dc2ad6c4b0fca9dd984d42490f81 Mon Sep 17 00:00:00 2001 From: Tone <66808319+Tone866@users.noreply.github.com> Date: Fri, 27 Mar 2026 10:01:57 +0100 Subject: [PATCH 2/4] Update CaschyBridge.php --- bridges/CaschyBridge.php | 1 + 1 file changed, 1 insertion(+) diff --git a/bridges/CaschyBridge.php b/bridges/CaschyBridge.php index 40ca0fbabca..bce7a41026c 100644 --- a/bridges/CaschyBridge.php +++ b/bridges/CaschyBridge.php @@ -64,6 +64,7 @@ private function addArticleToItem($item, $article) $ytResult = handleYoutube($ytvideo->innertext); if ($ytResult) $ytvideo->innertext = $ytResult; + } // reload html, as remove() is buggy $article = str_get_html($article->outertext); From 8d5814cdfb1c71eea0ae676d12c442cccf9fa334 Mon Sep 17 00:00:00 2001 From: Tone <66808319+Tone866@users.noreply.github.com> Date: Fri, 3 Apr 2026 23:31:49 +0200 Subject: [PATCH 3/4] Update CaschyBridge.php --- bridges/CaschyBridge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bridges/CaschyBridge.php b/bridges/CaschyBridge.php index bce7a41026c..a7cca908025 100644 --- a/bridges/CaschyBridge.php +++ b/bridges/CaschyBridge.php @@ -62,8 +62,9 @@ private function addArticleToItem($item, $article) foreach ($article->find('.video-container') as &$ytvideo) { $ytResult = handleYoutube($ytvideo->innertext); - if ($ytResult) + if ($ytResult) { $ytvideo->innertext = $ytResult; + } } // reload html, as remove() is buggy From b99de96784a19a2157b1ddea33e67d7b45c088cc Mon Sep 17 00:00:00 2001 From: Tone <66808319+Tone866@users.noreply.github.com> Date: Mon, 27 Apr 2026 10:26:06 +0200 Subject: [PATCH 4/4] Update CaschyBridge.php not only youtube videos are in video-containers... --- bridges/CaschyBridge.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bridges/CaschyBridge.php b/bridges/CaschyBridge.php index a7cca908025..a04c855be12 100644 --- a/bridges/CaschyBridge.php +++ b/bridges/CaschyBridge.php @@ -61,9 +61,11 @@ private function addArticleToItem($item, $article) } foreach ($article->find('.video-container') as &$ytvideo) { - $ytResult = handleYoutube($ytvideo->innertext); - if ($ytResult) { - $ytvideo->innertext = $ytResult; + if (str_contains($ytvideo->innertext, 'youtube.com')) { + $ytResult = handleYoutube($ytvideo->innertext); + if ($ytResult) { + $ytvideo->innertext = $ytResult; + } } }