~h for help too, more work on yotube playlist queue, music debugging

This commit is contained in:
Master Kwoth
2016-02-03 10:55:14 +01:00
parent 6f53bfcf16
commit aa961bbe65
5 changed files with 17 additions and 6 deletions

View File

@ -269,7 +269,10 @@ namespace NadekoBot.Modules {
var sr = new StreamReader(wr.GetResponse().GetResponseStream());
dynamic obj = JObject.Parse(sr.ReadToEnd());
toReturn = "http://www.youtube.com/watch?v=" + obj.items[0].id.playlistId.ToString();
foreach (var item in obj.items) {
toReturn.Add("http://www.youtube.com/watch?v=" + item.id.contentDetails.videoId);
}
return toReturn;
} catch (Exception ex) {
Console.WriteLine($"Error in GetPlaylistId: {ex.Message}");