SoundCloud API Url fixed

This commit is contained in:
killer069 2021-10-01 11:14:25 +05:30
parent 704ddd303a
commit 4f49d16b16

View File

@ -12,7 +12,7 @@ interface SoundDataOptions {
client_id: string; 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 * Function to get info from a soundcloud url
* @param url soundcloud url * @param url soundcloud url