Playlist queue limit has been raised to 500. Closes #286

This commit is contained in:
Master Kwoth
2016-05-09 21:51:54 +02:00
parent bb19551768
commit 28af70a823
4 changed files with 44 additions and 17 deletions

View File

@ -282,10 +282,15 @@ namespace NadekoBot.Modules.Music
await e.Channel.SendMessage("No search results for that query.");
return;
}
var ids = await SearchHelper.GetVideoIDs(plId, 50).ConfigureAwait(false);
var ids = await SearchHelper.GetVideoIDs(plId, 500).ConfigureAwait(false);
if (ids == null || ids.Count == 0)
{
await e.Channel.SendMessage($"🎵`Failed to find any songs.`");
return;
}
//todo TEMPORARY SOLUTION, USE RESOLVE QUEUE IN THE FUTURE
var idArray = ids as string[] ?? ids.ToArray();
var count = idArray.Count();
var count = idArray.Length;
var msg =
await e.Channel.SendMessage($"🎵 `Attempting to queue {count} songs".SnPl(count) + "...`").ConfigureAwait(false);
foreach (var id in idArray)