Исправлен поиск
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user