switch search to Contains

This commit is contained in:
Luke Pulverenti 2013-04-10 15:25:06 -04:00
parent d327095b4b
commit 4210c8e0ed

View File

@ -26,7 +26,7 @@ namespace MediaBrowser.Server.Implementations.Library
throw new ArgumentNullException("searchTerm");
}
return items.Where(i => i.Name.StartsWith(searchTerm, StringComparison.OrdinalIgnoreCase));
return items.Where(i => i.Name.IndexOf(searchTerm, StringComparison.OrdinalIgnoreCase) != -1);
}
}
}