diff --git a/src/players/YouTube.js b/src/players/YouTube.js index ab647b32..afc96a03 100644 --- a/src/players/YouTube.js +++ b/src/players/YouTube.js @@ -6,7 +6,7 @@ import createSinglePlayer from '../singlePlayer' const SDK_URL = 'https://www.youtube.com/iframe_api' const SDK_GLOBAL = 'YT' const SDK_GLOBAL_READY = 'onYouTubeIframeAPIReady' -const MATCH_URL = /(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})/ +const MATCH_URL = /(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})|youtube\.com\/playlist\?list=/ const MATCH_PLAYLIST = /list=([a-zA-Z0-9_-]+)/ function parsePlaylist (url) {