Add ytmusic service, parse track
This commit is contained in:
parent
d1a87622fb
commit
6f5f361393
5 changed files with 108 additions and 0 deletions
|
@ -3,6 +3,9 @@ import querystring from 'querystring';
|
|||
|
||||
export default function match(url) {
|
||||
const parsed = parse(url);
|
||||
if (parsed.host.match(/music\.youtube\.com$/)) {
|
||||
return false;
|
||||
}
|
||||
if (parsed.host.match(/youtu\.be$/)) {
|
||||
return true;
|
||||
} else if (parsed.host.match(/youtube\.com$/)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue