]> _ Git - cubist_util.git/commitdiff
wip #7534 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 13 May 2025 10:22:35 +0000 (12:22 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 13 May 2025 10:22:35 +0000 (12:22 +0200)
src/WebVideo.php

index 488e3042ffea8333e34ddd6daa6393c5d4586a13..93db97ec3f985c9e8b059145e0204c175a7ef542 100644 (file)
@@ -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];
             }