Исправлен поиск

This commit is contained in:
FrigaT
2026-04-21 20:01:17 +03:00
parent 1c32b2e997
commit d1e3e23e93

View File

@@ -106,11 +106,11 @@ public class YandexMusicService
}; };
var searchResult = await Api.Search.SearchAsync(query, ySerchType, page: 0, pageSize: limit); var searchResult = await Api.Search.SearchAsync(query, ySerchType, page: 0, pageSize: limit);
if (searchResult?.Tracks?.Results == null) return new YandexSearchResult(); if (searchResult == null) return new YandexSearchResult();
return new YandexSearchResult return new YandexSearchResult
{ {
Tracks = searchResult.Tracks.Results.Select(t => new YandexTrack Tracks = searchResult.Tracks?.Results.Select(t => new YandexTrack
{ {
TrackId = t.Id, TrackId = t.Id,
Title = t.Title, Title = t.Title,