Update play command.

This commit is contained in:
Nekojimi 2022-06-20 17:14:35 +01:00
parent a451369c92
commit 152afe4813
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ public class PlayCommand extends Command
{
final URL url = new URL(invocation.getArgs().get(0));
request.setUrl(url);
bot.queueDownload(request);
bot.queueDownload(request, bot.getQueueManager());
} catch (MalformedURLException mux)
{
@ -103,7 +103,7 @@ public class PlayCommand extends Command
if (results.get(0).getScore() >= SEARCH_SCORE_THRESHOLD_AUTOPLAY)
{
request.setResult(results.get(0));
bot.queueDownload(request);
bot.queueDownload(request, bot.getQueueManager());
return;
}