From abb02912c80dcbd31a6e24db73c02063b3ad58a5 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Wed, 22 Sep 2021 15:53:04 -0400 Subject: [PATCH] Add support for music.youtube.com URLs Closes #355 --- src/commands/play.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/commands/play.ts b/src/commands/play.ts index 8221f7b..a907a40 100644 --- a/src/commands/play.ts +++ b/src/commands/play.ts @@ -76,7 +76,13 @@ export default class implements Command { try { const url = new URL(args[0]); - const YOUTUBE_HOSTS = ['www.youtube.com', 'youtu.be', 'youtube.com']; + const YOUTUBE_HOSTS = [ + 'www.youtube.com', + 'youtu.be', + 'youtube.com', + 'music.youtube.com', + 'www.music.youtube.com', + ]; if (YOUTUBE_HOSTS.includes(url.host)) { // YouTube source