diff --git a/package-lock.json b/package-lock.json index a053e2a0..dc427439 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "hls-video-element": "^1.5.5", "vimeo-video-element": "^1.5.1", "wistia-video-element": "^1.3.2", - "youtube-video-element": "^1.5.3" + "youtube-video-element": "^1.6.0" }, "devDependencies": { "@biomejs/biome": "1.8.2", @@ -3908,9 +3908,9 @@ } }, "node_modules/youtube-video-element": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/youtube-video-element/-/youtube-video-element-1.5.3.tgz", - "integrity": "sha512-oF9lNlbuWpmpNgbQPrlALGELpgpPLrtz0nakgNUTSQCBQVuyMyU1EVopG6WQsdFh7tZlk0JxDna3bUTWy7erZg==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/youtube-video-element/-/youtube-video-element-1.6.0.tgz", + "integrity": "sha512-yu6aMaSyyp8ygqNNnf01xjJdy7AaWwEhLlJ/XRdFteLP/djM7i7JOrK0INgjvBnv88dAtiW9PKZ0OQQzGFeydw==", "license": "MIT" }, "node_modules/zora": { diff --git a/package.json b/package.json index ecbf5c63..973049e3 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "hls-video-element": "^1.5.5", "vimeo-video-element": "^1.5.1", "wistia-video-element": "^1.3.2", - "youtube-video-element": "^1.5.3" + "youtube-video-element": "^1.6.0" }, "devDependencies": { "@biomejs/biome": "1.8.2", diff --git a/src/patterns.ts b/src/patterns.ts index bb15f072..d5ba2d51 100644 --- a/src/patterns.ts +++ b/src/patterns.ts @@ -6,7 +6,7 @@ export const DASH_EXTENSIONS = /\.(mpd)($|\?)/i; // Match Mux m3u8 URLs without the extension so users can use hls.js with Mux by adding the `.m3u8` extension. https://regexr.com/7um5f export const MATCH_URL_MUX = /stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/; export const MATCH_URL_YOUTUBE = - /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/; + /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//; export const MATCH_URL_VIMEO = /vimeo\.com\/(?!progressive_redirect).+/; export const MATCH_URL_WISTIA = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/;