From 70f0f6af4493b4d0d314e508ac0f013b88064125 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Mon, 10 Jul 2017 21:08:11 +0200 Subject: [PATCH] Fixed some links queueing random songs. closes #1368 --- src/NadekoBot/Services/Impl/Ytdl.cs | 2 +- src/NadekoBot/Services/Music/SongBuffer.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/NadekoBot/Services/Impl/Ytdl.cs b/src/NadekoBot/Services/Impl/Ytdl.cs index c2c102d8..0ddebe6b 100644 --- a/src/NadekoBot/Services/Impl/Ytdl.cs +++ b/src/NadekoBot/Services/Impl/Ytdl.cs @@ -21,7 +21,7 @@ namespace NadekoBot.Services.Impl StartInfo = new ProcessStartInfo() { FileName = "youtube-dl", - Arguments = $"-f bestaudio -e --get-url --get-id --get-thumbnail --get-duration --no-check-certificate \"ytsearch:{url}\"", + Arguments = $"-f bestaudio -e --get-url --get-id --get-thumbnail --get-duration --no-check-certificate --default-search \"ytsearch:\" \"{url}\"", UseShellExecute = false, RedirectStandardError = true, RedirectStandardOutput = true, diff --git a/src/NadekoBot/Services/Music/SongBuffer.cs b/src/NadekoBot/Services/Music/SongBuffer.cs index 6664577e..e7a33a64 100644 --- a/src/NadekoBot/Services/Music/SongBuffer.cs +++ b/src/NadekoBot/Services/Music/SongBuffer.cs @@ -1,5 +1,4 @@ -using NadekoBot.DataStructures; -using NLog; +using NLog; using System; using System.Diagnostics; using System.IO;