YouTube Music as supported player (#3736)

This commit is contained in:
Mary
2024-04-28 12:11:08 +07:00
committed by GitHub
parent 21e5a87fab
commit 74cd1d4458
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -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 =