From 25735a679fc26704fb7fa54491f796496297a7d2 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Sat, 12 Nov 2016 16:44:31 +0100 Subject: [PATCH] Improved song bitrate from youtube --- src/NadekoBot/Modules/Music/Classes/Song.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Music/Classes/Song.cs b/src/NadekoBot/Modules/Music/Classes/Song.cs index e932b364..73a39ced 100644 --- a/src/NadekoBot/Modules/Music/Classes/Song.cs +++ b/src/NadekoBot/Modules/Music/Classes/Song.cs @@ -337,7 +337,7 @@ namespace NadekoBot.Modules.Music.Classes var allVideos = await Task.Run(async () => { try { return await YouTube.Default.GetAllVideosAsync(link).ConfigureAwait(false); } catch { return Enumerable.Empty(); } }).ConfigureAwait(false); var videos = allVideos.Where(v => v.AdaptiveKind == AdaptiveKind.Audio); var video = videos - .Where(v => v.AudioBitrate < 192) + .Where(v => v.AudioBitrate < 256) .OrderByDescending(v => v.AudioBitrate) .FirstOrDefault();