From 4f49d16b16fdb0cac1cbfbd030fe87da9750a7a0 Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 1 Oct 2021 11:14:25 +0530 Subject: [PATCH] SoundCloud API Url fixed --- play-dl/SoundCloud/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-dl/SoundCloud/index.ts b/play-dl/SoundCloud/index.ts index 1d9c923..7c59028 100644 --- a/play-dl/SoundCloud/index.ts +++ b/play-dl/SoundCloud/index.ts @@ -12,7 +12,7 @@ interface SoundDataOptions { client_id: string; } -const pattern = /^(?:(https?):\/\/)?(?:(?:www|m)\.)?(soundcloud\.com|snd\.sc)\/(.*)$/; +const pattern = /^(?:(https?):\/\/)?(?:(?:www|m)\.)?(api\.soundcloud\.com|soundcloud\.com|snd\.sc)\/(.*)$/; /** * Function to get info from a soundcloud url * @param url soundcloud url