diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-08-24 15:53:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-24 15:53:36 -0400 |
| commit | 421f506d3f5dcfd020355f2dbc37db3ed6493363 (patch) | |
| tree | 1d9a69d530f59bf261b0fc8a63f2ceb1a1608fd3 /MediaBrowser.Api/SearchService.cs | |
| parent | 2bd37fd2c25cd740f4e9f69c4f9a766b10467ded (diff) | |
| parent | 165069ce6337919ebc824d8cf0ef1ef945835718 (diff) | |
Merge pull request #2841 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/SearchService.cs')
| -rw-r--r-- | MediaBrowser.Api/SearchService.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Api/SearchService.cs b/MediaBrowser.Api/SearchService.cs index 77e29d6cc..ad79ea57b 100644 --- a/MediaBrowser.Api/SearchService.cs +++ b/MediaBrowser.Api/SearchService.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Controller.Drawing; +using System.Linq; +using MediaBrowser.Controller.Drawing; using MediaBrowser.Controller.Dto; using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities.Audio; @@ -7,7 +8,6 @@ using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Net; using MediaBrowser.Model.Entities; using MediaBrowser.Model.Search; -using System.Linq; using System.Threading.Tasks; using MediaBrowser.Controller.LiveTv; using MediaBrowser.Model.Services; @@ -240,7 +240,7 @@ namespace MediaBrowser.Api if (album != null) { - result.Artists = album.Artists.ToArray(); + result.Artists = album.Artists; result.AlbumArtist = album.AlbumArtist; } @@ -250,7 +250,7 @@ namespace MediaBrowser.Api { result.Album = song.Album; result.AlbumArtist = song.AlbumArtists.FirstOrDefault(); - result.Artists = song.Artists.ToArray(); + result.Artists = song.Artists; } if (!string.IsNullOrWhiteSpace(item.ChannelId)) |
