feat(embed): add support to music.youtube.com

This commit is contained in:
Tom (plebeius.eth)
2024-10-14 17:50:03 +02:00
parent 9cc1f58698
commit 03dbf958f6
+1 -1
View File
@@ -46,7 +46,7 @@ interface EmbedComponentProps {
parsedUrl: URL;
}
const youtubeHosts = new Set<string>(['youtube.com', 'www.youtube.com', 'youtu.be', 'www.youtu.be', 'm.youtube.com']);
const youtubeHosts = new Set<string>(['youtube.com', 'www.youtube.com', 'youtu.be', 'www.youtu.be', 'm.youtube.com', 'music.youtube.com']);
const YoutubeEmbed = ({ parsedUrl }: EmbedComponentProps) => {
let youtubeId = parsedUrl.searchParams.get('v');