From bc0dce6e884804602e396aa3a345aebcd9f51747 Mon Sep 17 00:00:00 2001 From: Toastie Date: Sat, 2 Nov 2024 00:20:41 +1300 Subject: [PATCH] ytdataapiv3 searches will no longer duplicate youtube urls Uppded version to 5.1.17 --- src/EllieBot/EllieBot.csproj | 2 +- .../Searches/Search/Youtube/YoutubeDataApiSearchService.cs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/EllieBot/EllieBot.csproj b/src/EllieBot/EllieBot.csproj index 27d84c7..f2fd198 100644 --- a/src/EllieBot/EllieBot.csproj +++ b/src/EllieBot/EllieBot.csproj @@ -4,7 +4,7 @@ enable true en - 5.1.16 + 5.1.17 $(MSBuildProjectDirectory) diff --git a/src/EllieBot/Modules/Searches/Search/Youtube/YoutubeDataApiSearchService.cs b/src/EllieBot/Modules/Searches/Search/Youtube/YoutubeDataApiSearchService.cs index 9c69a5e..b39d035 100644 --- a/src/EllieBot/Modules/Searches/Search/Youtube/YoutubeDataApiSearchService.cs +++ b/src/EllieBot/Modules/Searches/Search/Youtube/YoutubeDataApiSearchService.cs @@ -18,6 +18,9 @@ public sealed class YoutubeDataApiSearchService : IYoutubeSearchService, IEServi if (results.Count == 0) return null; - return results.Map(r => new VideoInfo(r)); + return results.Map(r => new VideoInfo() + { + Url = r + }); } } \ No newline at end of file