From: Vincent Vanwaelscappel Date: Tue, 13 May 2025 10:22:35 +0000 (+0200) Subject: wip #7534 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7cdd556dfa731ff563116cf163f1c12ef0826d9e;p=cubist_util.git wip #7534 @0.25 --- diff --git a/src/WebVideo.php b/src/WebVideo.php index 488e304..93db97e 100644 --- a/src/WebVideo.php +++ b/src/WebVideo.php @@ -158,6 +158,9 @@ class WebVideo { $r = Text::parseUrl($url); if ($service == 'youtube') { + if (stristr($url, 'playlist')) { + return false; + } if (preg_match("/^(?:http(?:s)?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user|shorts)\/))([^\?&\"'>]+)/", $url, $matches)) { return $matches[1]; }