Feature request: Add soundcloud in lavalink search.
Created by: nathan130200
In official Lavaplayer i found this search prefix like ytsearch:
but for soundcloud scsearch:
SoundCloudAudioSourceManager.java#L72
Can create an enum like:
public enum SearchType
{
Youtube,
Soundcloud
}
and grab this enum in GetTracksAsync
public Task<LavalinkLoadResult> GetTracksAsync(string searchQuery, SearchType type = SearchType.Youtube)
{
var stype = type == SearchType.Youtube ? "ytsearch" : "scsearch";
var str = WebUtility.UrlEncode($"{stype}:{searchQuery}");
var tracksUri = new Uri($"http://{this.Configuration.RestEndpoint}/loadtracks?identifier={str}");
return this.InternalResolveTracksAsync(tracksUri);
}