ytdataapiv3 searches will no longer duplicate youtube urls

Uppded version to 5.1.17
This commit is contained in:
Toastie (DCS Team) 2024-11-02 00:20:41 +13:00
parent c5b27421a3
commit bc0dce6e88
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
2 changed files with 5 additions and 2 deletions

View file

@ -4,7 +4,7 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>true</ImplicitUsings> <ImplicitUsings>true</ImplicitUsings>
<SatelliteResourceLanguages>en</SatelliteResourceLanguages> <SatelliteResourceLanguages>en</SatelliteResourceLanguages>
<Version>5.1.16</Version> <Version>5.1.17</Version>
<!-- Output/build --> <!-- Output/build -->
<RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory> <RunWorkingDirectory>$(MSBuildProjectDirectory)</RunWorkingDirectory>

View file

@ -18,6 +18,9 @@ public sealed class YoutubeDataApiSearchService : IYoutubeSearchService, IEServi
if (results.Count == 0) if (results.Count == 0)
return null; return null;
return results.Map(r => new VideoInfo(r)); return results.Map(r => new VideoInfo()
{
Url = r
});
} }
} }