Доработка компонентка добавления треков
This commit is contained in:
@@ -82,6 +82,6 @@ public class YandexSearchController : ControllerBase
|
||||
results = await _yandexService.SearchAsync(user, query, searchType, limit);
|
||||
}
|
||||
|
||||
return Ok(ApiResponse<List<YandexTrack>>.Ok(results));
|
||||
return Ok(ApiResponse<YandexSearchResult>.Ok(results));
|
||||
}
|
||||
}
|
||||
@@ -158,7 +158,7 @@ public class YandexMusicService
|
||||
Id = a.Id,
|
||||
Name = a.Name,
|
||||
CoverUrl = a.Cover.GetUrl(),
|
||||
Description = a.Description.Text,
|
||||
Description = a.Description?.Text ?? string.Empty,
|
||||
}).ToList(),
|
||||
|
||||
Albums = searchResult.Albums?.Results.Select(a => new YandexAlbum
|
||||
@@ -170,7 +170,7 @@ public class YandexMusicService
|
||||
Id = t.Id,
|
||||
Name = t.Name,
|
||||
CoverUrl = t.Cover.GetUrl(),
|
||||
Description = t.Description.Text,
|
||||
Description = t.Description?.Text ?? string.Empty,
|
||||
}).ToList(),
|
||||
CoverUrl = string.IsNullOrEmpty(a.CoverUri) ? a.Cover.GetUrl() : a.CoverUri,
|
||||
Description = a.Description,
|
||||
|
||||
Reference in New Issue
Block a user