From 3f443246238eb76971a27c79886ea756b451d864 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Tue, 12 Mar 2013 00:26:23 -0400 Subject: Added LibraryManager.Search --- MediaBrowser.Api/UserLibrary/ItemsService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs') diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs index ff062c183..13996be19 100644 --- a/MediaBrowser.Api/UserLibrary/ItemsService.cs +++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs @@ -387,7 +387,7 @@ namespace MediaBrowser.Api.UserLibrary if (!string.IsNullOrEmpty(term)) { - items = items.Where(i => i.Name.StartsWith(term, StringComparison.OrdinalIgnoreCase)); + items = _libraryManager.Search(items, request.SearchTerm); } return items; -- cgit v1.2.3