soundcloud link
This commit is contained in:
parent
5b8b6e0c0d
commit
f5a48bc433
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ export class Util {
|
|||
* @returns {QueryType}
|
||||
*/
|
||||
static getQueryType(query: string): QueryType {
|
||||
// @todo: better validation
|
||||
if (query.match(/soundcloud.app.goo.gl/)) return 'soundcloud_track';
|
||||
if (SoundcloudValidateURL(query) && !query.includes('/sets/')) return 'soundcloud_track';
|
||||
if (SoundcloudValidateURL(query) && query.includes('/sets/')) return 'soundcloud_playlist';
|
||||
if (spotifySongRegex.test(query)) return 'spotify_song';
|
||||
|
|
Loading…
Reference in a new issue