From 821a3d29a228feaa3ac4d36c58ee478a405e0481 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 5 Feb 2014 23:39:16 -0500 Subject: converted movie providers to new system --- MediaBrowser.Api/LibraryService.cs | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) (limited to 'MediaBrowser.Api/LibraryService.cs') diff --git a/MediaBrowser.Api/LibraryService.cs b/MediaBrowser.Api/LibraryService.cs index 584bbf9a1..a7a58dbfb 100644 --- a/MediaBrowser.Api/LibraryService.cs +++ b/MediaBrowser.Api/LibraryService.cs @@ -331,21 +331,8 @@ namespace MediaBrowser.Api { if (item.Parent is AggregateFolder) { - return user.RootFolder.GetChildren(user, true).FirstOrDefault(i => - { - - try - { - return i.LocationType == LocationType.FileSystem && - i.PhysicalLocations.Contains(item.Path); - } - catch (Exception ex) - { - Logger.ErrorException("Error getting ResolveArgs for {0}", ex, i.Path); - return false; - } - - }); + return user.RootFolder.GetChildren(user, true).FirstOrDefault(i => i.LocationType == LocationType.FileSystem && + i.PhysicalLocations.Contains(item.Path)); } return item; -- cgit v1.2.3