aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/LibraryService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-05 23:39:16 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-05 23:39:16 -0500
commit821a3d29a228feaa3ac4d36c58ee478a405e0481 (patch)
tree48925fa069c1b57cc3c126b58194740c191359c1 /MediaBrowser.Api/LibraryService.cs
parent64eb8c82a3e82d84ac827aa35a55fdface9ac783 (diff)
converted movie providers to new system
Diffstat (limited to 'MediaBrowser.Api/LibraryService.cs')
-rw-r--r--MediaBrowser.Api/LibraryService.cs17
1 files changed, 2 insertions, 15 deletions
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;