diff --git a/src/utils/Util.ts b/src/utils/Util.ts index 7826f5d..86d28c6 100644 --- a/src/utils/Util.ts +++ b/src/utils/Util.ts @@ -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';