aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/LibraryService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-05 22:39:44 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-05 22:39:44 -0500
commit5f0d8000a5ec26fd66c5f188f3bb517bb139b74b (patch)
tree769514a446fc33ba812d1a9a05a66f0845c9e590 /MediaBrowser.Api/LibraryService.cs
parentebe483db9a5d31528a644200a71f2b36ac2864bd (diff)
moved media streams to the database
Diffstat (limited to 'MediaBrowser.Api/LibraryService.cs')
-rw-r--r--MediaBrowser.Api/LibraryService.cs38
1 files changed, 0 insertions, 38 deletions
diff --git a/MediaBrowser.Api/LibraryService.cs b/MediaBrowser.Api/LibraryService.cs
index 51eef225e..48037e801 100644
--- a/MediaBrowser.Api/LibraryService.cs
+++ b/MediaBrowser.Api/LibraryService.cs
@@ -370,44 +370,6 @@ namespace MediaBrowser.Api
UniqueTypes = items.Select(i => i.GetClientTypeName()).Distinct().ToList()
};
- var people = items.SelectMany(i => i.People)
- .Select(i => i.Name)
- .Distinct(StringComparer.OrdinalIgnoreCase)
- .Select(i =>
- {
- try
- {
- return _libraryManager.GetPerson(i);
- }
- catch
- {
- return null;
- }
- })
- .Where(i => i != null)
- .ToList();
-
- people = request.UserId.HasValue ? FilterItems(people, request, request.UserId.Value).ToList() : people;
- counts.PersonCount = people.Count;
-
- var artists = _libraryManager.GetAllArtists(items)
- .Select(i =>
- {
- try
- {
- return _libraryManager.GetArtist(i);
- }
- catch
- {
- return null;
- }
- })
- .Where(i => i != null)
- .ToList();
-
- artists = request.UserId.HasValue ? FilterItems(artists, request, request.UserId.Value).ToList() : artists;
- counts.ArtistCount = artists.Count;
-
return ToOptimizedResult(counts);
}