diff --git a/src/renderer/store/modules/utils.js b/src/renderer/store/modules/utils.js index 786bff9743140..77a8385cfce4c 100644 --- a/src/renderer/store/modules/utils.js +++ b/src/renderer/store/modules/utils.js @@ -292,7 +292,12 @@ const actions = { // youtube.com/embed function() { if (urlObject.pathname.match(/^\/embed\/[A-Za-z0-9_-]+$/)) { - extractParams(urlObject.pathname.replace('/embed/', '')) + const urlTail = urlObject.pathname.replace('/embed/', '') + if (urlTail === 'videoseries') { + paramsObject.playlistId = urlObject.searchParams.get('list') + } else { + extractParams(urlTail) + } return paramsObject } }, @@ -366,7 +371,7 @@ const actions = { /^\/(?:(?channel|user|c)\/)?(?[^/]+)(?:\/(join|featured|videos|playlists|about|community|channels))?\/?$/ const typePatterns = new Map([ - ['playlist', /^\/playlist\/?$/], + ['playlist', /^(\/playlist\/?|\/embed(\/?videoseries)?)$/], ['search', /^\/results\/?$/], ['hashtag', /^\/hashtag\/([^/?&#]+)$/], ['channel', channelPattern]