mirror of
https://github.com/BluemediaGER/muse.git
synced 2024-11-23 09:15:29 +01:00
parent
4a7108232a
commit
abb02912c8
|
@ -76,7 +76,13 @@ export default class implements Command {
|
||||||
try {
|
try {
|
||||||
const url = new URL(args[0]);
|
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)) {
|
if (YOUTUBE_HOSTS.includes(url.host)) {
|
||||||
// YouTube source
|
// YouTube source
|
||||||
|
|
Loading…
Reference in a new issue