YouTube Music as supported player (#3736)
This commit is contained in:
parent
21e5a87fab
commit
74cd1d4458
2 changed files with 8 additions and 1 deletions
|
@ -95,7 +95,8 @@ export function parseEmbedPlayerFromUrl(
|
|||
if (
|
||||
urlp.hostname === 'www.youtube.com' ||
|
||||
urlp.hostname === 'youtube.com' ||
|
||||
urlp.hostname === 'm.youtube.com'
|
||||
urlp.hostname === 'm.youtube.com' ||
|
||||
urlp.hostname === 'music.youtube.com'
|
||||
) {
|
||||
const [_, page, shortVideoId] = urlp.pathname.split('/')
|
||||
const videoId =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue