From 5e2df36de17a5b36340c1e11378a25a8a93dc1e7 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 19 Oct 2016 12:24:07 +0200 Subject: [PATCH] Fixed !!sq --- src/NadekoBot/Modules/Music/Classes/SoundCloud.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Music/Classes/SoundCloud.cs b/src/NadekoBot/Modules/Music/Classes/SoundCloud.cs index c653d5a2..8da2a13b 100644 --- a/src/NadekoBot/Modules/Music/Classes/SoundCloud.cs +++ b/src/NadekoBot/Modules/Music/Classes/SoundCloud.cs @@ -50,7 +50,7 @@ namespace NadekoBot.Modules.Music.Classes var response = ""; using (var http = new HttpClient()) { - await http.GetStringAsync($"http://api.soundcloud.com/tracks?q={Uri.EscapeDataString(query)}&client_id={NadekoBot.Credentials.SoundCloudClientId}").ConfigureAwait(false); + response = await http.GetStringAsync($"http://api.soundcloud.com/tracks?q={Uri.EscapeDataString(query)}&client_id={NadekoBot.Credentials.SoundCloudClientId}").ConfigureAwait(false); } var responseObj = JsonConvert.DeserializeObject(response).Where(s => s.Streamable).FirstOrDefault(); @@ -70,6 +70,7 @@ namespace NadekoBot.Modules.Music.Classes [JsonIgnore] public string FullName => User.Name + " - " + Title; public bool Streamable { get; set; } = false; + public int Duration { get; set; } [JsonProperty("permalink_url")] public string TrackLink { get; set; } = ""; [JsonIgnore]